diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-05-12 08:38:55 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-05-12 08:38:55 +0900 |
commit | 739225c2c3b739d028ec405295132ecf5b5b5f6f (patch) | |
tree | d73c5525a07939f9e0628bd82559785944fed8e1 | |
parent | 640b934668925f03ab005d685c9f92849da2033b (diff) | |
download | rust-const-random-accepted/tizen_rust.tar.gz rust-const-random-accepted/tizen_rust.tar.bz2 rust-const-random-accepted/tizen_rust.zip |
Add unittesttizen_9.0_m2_releaseaccepted/tizen/unified/x/20240328.130557accepted/tizen/unified/dev/20240620.001224accepted/tizen/unified/20240328.121820accepted/tizen/rust/20231016.021025accepted/tizen/9.0/unified/20241030.235254tizen_9.0tizenaccepted/tizen_unified_xaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_rustaccepted/tizen_9.0_unified
[ 13s] + ./const_random
[ 13s]
[ 13s] running 6 tests
[ 13s] test array ... ok
[ 13s] test i64 ... ok
[ 13s] test suffixed ... ok
[ 13s] test u128 ... ok
[ 13s] test u32 ... ok
[ 13s] test usize ... ok
[ 13s]
[ 13s] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s
-rw-r--r-- | packaging/rust-const-random.spec | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packaging/rust-const-random.spec b/packaging/rust-const-random.spec index 7fec401..3998bb7 100644 --- a/packaging/rust-const-random.spec +++ b/packaging/rust-const-random.spec @@ -54,6 +54,17 @@ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:%{_rust_dylibdir} 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}} \ + --extern %{real_crate_name}=./lib%{real_crate_name}.so \ + ./tests/tests.rs + +./%{real_crate_name} +%endif + %clean %post -p /sbin/ldconfig |