summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2023-05-22 07:06:40 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2023-05-22 07:06:40 +0900
commit8d46910cfa85b20183fee42c391c2d8bce8313ae (patch)
treed797cd59e85416b3d3bedc7faa6ec1e1165abb44
parentf99ebe4630957b0686641110a27d02177ef56d64 (diff)
downloadrust-bit-set-8d46910cfa85b20183fee42c391c2d8bce8313ae.tar.gz
rust-bit-set-8d46910cfa85b20183fee42c391c2d8bce8313ae.tar.bz2
rust-bit-set-8d46910cfa85b20183fee42c391c2d8bce8313ae.zip
[ 19s] + ./bit_set [ 19s] [ 19s] running 22 tests [ 19s] test tests::test_bit_set_basic ... ok [ 19s] test tests::test_bit_set_difference ... ok [ 19s] test tests::test_bit_set_difference_with ... ok [ 19s] test tests::test_bit_set_eq ... ok [ 19s] test tests::test_bit_set_cmp ... ok [ 19s] test tests::test_bit_set_from_usizes ... ok [ 19s] test tests::test_bit_set_frombit_vec_init ... ok [ 19s] test tests::test_bit_set_intersection ... ok [ 19s] test tests::test_bit_set_is_disjoint ... ok [ 19s] test tests::test_bit_set_intersect_with ... ok [ 19s] test tests::test_bit_set_shrink_to_fit ... ok [ 19s] test tests::test_bit_set_show ... ok [ 19s] test tests::test_bit_set_subset ... ok [ 19s] test tests::test_bit_set_shrink_to_fit_new ... ok [ 19s] test tests::test_bit_set_symmetric_difference ... ok [ 19s] test tests::test_bit_set_iterator ... ok [ 19s] test tests::test_bit_set_symmetric_difference_with ... ok [ 19s] test tests::test_bit_set_union ... ok [ 19s] test tests::test_bit_set_union_with ... ok [ 19s] test tests::test_bit_vec_clone ... ok [ 19s] test tests::test_bit_vec_masking ... ok [ 19s] test tests::test_bit_vec_remove ... ok [ 19s] [ 19s] test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
-rw-r--r--packaging/rust-bit-set.spec11
1 files changed, 11 insertions, 0 deletions
diff --git a/packaging/rust-bit-set.spec b/packaging/rust-bit-set.spec
index c952c3c..66c4ce0 100644
--- a/packaging/rust-bit-set.spec
+++ b/packaging/rust-bit-set.spec
@@ -55,6 +55,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