diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-04-27 13:25:53 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-04-27 13:25:53 +0900 |
commit | afe57d0fd24735d8edf213fe22961ab6a81a0ec0 (patch) | |
tree | 3c8bd6ccfee8df733090dbdab147df0d2b0e5544 | |
parent | 6df2badc544138867def6da6ea33d3eae7ab0a2f (diff) | |
download | rust-byte-slice-cast-tizen.tar.gz rust-byte-slice-cast-tizen.tar.bz2 rust-byte-slice-cast-tizen.zip |
[ 12s] + ./byte_slice_cast
[ 12s]
[ 12s] running 18 tests
[ 12s] test tests::f32 ... ok
[ 12s] test tests::f64 ... ok
[ 12s] test tests::u16 ... ok
[ 12s] test tests::u16_array ... ok
[ 12s] test tests::u16_box_slice ... ok
[ 12s] test tests::u16_empty_from_byte_slice ... ok
[ 12s] test tests::u16_empty_to_byte_slice ... ok
[ 12s] test tests::u16_error_string ... ok
[ 12s] test tests::u16_mut ... ok
[ 12s] test tests::u16_mut_box_slice ... ok
[ 12s] test tests::u16_mut_vec ... ok
[ 12s] test tests::u16_vec ... ok
[ 12s] test tests::u8_array ... ok
[ 12s] test tests::u32 ... ok
[ 12s] test tests::u64 ... ok
[ 12s] test tests::u8 ... ok
[ 12s] test tests::unit ... ok
[ 12s] test tests::usize ... ok
[ 12s]
[ 12s] test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
-rw-r--r-- | packaging/rust-byte-slice-cast.spec | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packaging/rust-byte-slice-cast.spec b/packaging/rust-byte-slice-cast.spec index a7e45ff..668811e 100644 --- a/packaging/rust-byte-slice-cast.spec +++ b/packaging/rust-byte-slice-cast.spec @@ -49,6 +49,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 |