summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2023-05-08 11:21:34 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2023-05-08 11:21:34 +0900
commit95e34a8b109b66403cf4ca570dd6d611fa16397f (patch)
treefba7d465ed621b1aae7099a4487e3125730ab9a3
parentf879f34d99a2f40d9be3f13a5e297b793c67d6f5 (diff)
downloadrust-concolor-override-tizen.tar.gz
rust-concolor-override-tizen.tar.bz2
rust-concolor-override-tizen.zip
[ 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.spec10
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