[ 12s] + ./zeroize
[ 12s]
[ 12s] running 13 tests
[ 12s] test asref ... ok
[ 12s] test non_zero ... ok
[ 12s] test zeroize_box ... ok
[ 12s] test zeroize_byte_arrays ... ok
[ 12s] test zeroize_check_tuple ... ok
[ 12s] test zeroize_check_zerosize_types ... ok
[ 12s] test zeroize_on_drop_byte_arrays ... ok
[ 12s] test zeroize_maybeuninit_byte_arrays ... ok
[ 12s] test zeroize_on_drop_check_tuple ... ok
[ 12s] test zeroize_string_entire_capacity ... ok
[ 12s] test zeroize_vec ... ok
[ 12s] test zeroize_vec_entire_capacity ... ok
[ 12s] test zeroize_string ... ok
[ 12s]
[ 12s] test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s
%{rustc_std_build} --crate-type=dylib \
--crate-name=%{real_crate_name} \
%{?rustc_edition:--edition=%{rustc_edition}} \
+ --cfg='feature="alloc"' \
./src/lib.rs
# ==========================================================
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="alloc"' \
+ --extern %{real_crate_name}=./lib%{real_crate_name}.so \
+ ./tests/zeroize.rs
+./%{real_crate_name}
+%endif
+
%clean
%post -p /sbin/ldconfig