diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-05-08 11:17:56 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-05-08 11:17:56 +0900 |
commit | bf1cad36fdcdbfc09cf5f8b9f89f749b37fa8dbe (patch) | |
tree | e7b4c73fc23447583903bdff80175d912f94855a | |
parent | 666081c42bc52cc25b962b5e3e3ad144e5db730a (diff) | |
download | rust-concolor-accepted/tizen_rust.tar.gz rust-concolor-accepted/tizen_rust.tar.bz2 rust-concolor-accepted/tizen_rust.zip |
Add unittesttizen_9.0_m2_releaseaccepted/tizen/unified/x/20240328.130553accepted/tizen/unified/dev/20240620.001155accepted/tizen/unified/20240328.121759accepted/tizen/rust/20231016.021010accepted/tizen/9.0/unified/20241030.231921tizen_9.0tizenaccepted/tizen_unified_xaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_rustaccepted/tizen_9.0_unified
[ 17s] + ./concolor
[ 17s]
[ 17s] running 0 tests
[ 17s]
[ 17s] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
-rw-r--r-- | packaging/rust-concolor.spec | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packaging/rust-concolor.spec b/packaging/rust-concolor.spec index 0db90ad..68519aa 100644 --- a/packaging/rust-concolor.spec +++ b/packaging/rust-concolor.spec @@ -53,6 +53,17 @@ 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}} \ + --cfg='feature="std"' \ + ./src/lib.rs + +./%{real_crate_name} +%endif + %clean %post -p /sbin/ldconfig |