diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-04-13 15:00:19 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-04-13 15:00:19 +0900 |
commit | 5463ffe385c3b141c97ca1ca45cc150c3fcd3d91 (patch) | |
tree | 5fa757243dc1aa417fa92b7ebf9f1bd8115dbf76 | |
parent | bb72936ab88816c414a3da51232ae10c51eb836f (diff) | |
download | rust-adler-tizen.tar.gz rust-adler-tizen.tar.bz2 rust-adler-tizen.zip |
[ 11s] running 6 tests
[ 11s] test tests::mixed ... ok
[ 11s] test tests::wiki ... ok
[ 11s] test tests::bufread ... ok
[ 11s] test tests::ones ... ok
[ 11s] test tests::resume ... ok
[ 11s] test tests::zeroes ... ok
[ 11s]
[ 11s] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s
-rw-r--r-- | packaging/rust-adler.spec | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/packaging/rust-adler.spec b/packaging/rust-adler.spec index 4eb36f3..5eb265f 100644 --- a/packaging/rust-adler.spec +++ b/packaging/rust-adler.spec @@ -40,18 +40,29 @@ cp %{SOURCE1} . # crate-type : dylib, proc-macro, cdylib, bin, etc. # ========================================================== %build - %{rustc_std_build} --crate-type=dylib \ - --crate-name=%{real_crate_name} \ - %{?rustc_edition:--edition=%{rustc_edition}} \ - --cfg='feature="std"' \ - ./src/lib.rs +%{rustc_std_build} --crate-type=dylib \ + --crate-name=%{real_crate_name} \ + %{?rustc_edition:--edition=%{rustc_edition}} \ + --cfg='feature="std"' \ + ./src/lib.rs # ========================================================== # install section # ========================================================== %install - install -d -m 0755 %{buildroot}%{_rust_dylibdir} - install -m 0644 lib%{real_crate_name}.so %{buildroot}/%{_rust_dylibdir}/lib%{real_crate_name}.so +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} --crate-type=dylib \ + --test \ + --crate-name=%{real_crate_name} \ + %{?rustc_edition:--edition=%{rustc_edition}} \ + --cfg='feature="std"' \ + ./src/lib.rs +./%{real_crate_name} +%endif %clean @@ -64,7 +75,7 @@ cp %{SOURCE1} . # ========================================================== %files %manifest %{name}.manifest - %license LICENSE-0BSD - %license LICENSE-APACHE - %license LICENSE-MIT - %{_rust_dylibdir}/lib%{real_crate_name}.so +%license LICENSE-0BSD +%license LICENSE-APACHE +%license LICENSE-MIT +%{_rust_dylibdir}/lib%{real_crate_name}.so |