diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-05-08 11:21:34 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-05-08 11:21:34 +0900 |
commit | 95e34a8b109b66403cf4ca570dd6d611fa16397f (patch) | |
tree | fba7d465ed621b1aae7099a4487e3125730ab9a3 | |
parent | f879f34d99a2f40d9be3f13a5e297b793c67d6f5 (diff) | |
download | rust-concolor-override-accepted/tizen_unified.tar.gz rust-concolor-override-accepted/tizen_unified.tar.bz2 rust-concolor-override-accepted/tizen_unified.zip |
Add unittesttizen_9.0_m2_releaseaccepted/tizen/unified/x/20240328.130548accepted/tizen/unified/dev/20240620.001204accepted/tizen/unified/20240328.121738accepted/tizen/rust/20231016.021012accepted/tizen/9.0/unified/20241030.235424tizen_9.0tizenaccepted/tizen_unified_xaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_rustaccepted/tizen_9.0_unified
[ 15s] + ./concolor_override
[ 15s]
[ 15s] running 1 test
[ 15s] test test::choice_serialization ... ok
[ 15s]
[ 15s] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
-rw-r--r-- | packaging/rust-concolor-override.spec | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packaging/rust-concolor-override.spec b/packaging/rust-concolor-override.spec index f7cf38d..992feeb 100644 --- a/packaging/rust-concolor-override.spec +++ b/packaging/rust-concolor-override.spec @@ -50,6 +50,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 |