diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-05-02 09:47:27 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-05-02 09:47:27 +0900 |
commit | 593781e4dec9cc2b51744bbdd53a99f4eed8d491 (patch) | |
tree | dff546348912d41db7a6ecd683a4ee4357b6bc4b | |
parent | 445ed9efc0549c3aec8af835b6955311df39599b (diff) | |
download | rust-cc-accepted/tizen_rust.tar.gz rust-cc-accepted/tizen_rust.tar.bz2 rust-cc-accepted/tizen_rust.zip |
[ 42s] + ./cc
[ 42s]
[ 42s] running 1 test
[ 42s] test test_android_clang_compiler_uses_target_arg_internally ... ok
[ 42s]
[ 42s] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
-rw-r--r-- | packaging/rust-cc.spec | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packaging/rust-cc.spec b/packaging/rust-cc.spec index a3fd01a..aafde4e 100644 --- a/packaging/rust-cc.spec +++ b/packaging/rust-cc.spec @@ -55,6 +55,16 @@ cp %{SOURCE1} . install -d -m 0755 %{buildroot}%{_rust_dylibdir} install -m 0644 lib%{real_crate_name}.so %{buildroot}/%{_rust_dylibdir}/lib%{real_crate_name}.so +%check +%if 0%{?run_tests} +%{rustc_std_build} --test --crate-type=dylib \ + --crate-name=%{real_crate_name} \ + %{?rustc_edition:--edition=%{rustc_edition}} \ + ./src/lib.rs + +./%{real_crate_name} +%endif + %clean %post -p /sbin/ldconfig |