diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-04-14 11:39:03 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-04-14 11:39:03 +0900 |
commit | 4574264494a67451b527c4105179b50d9a7800c4 (patch) | |
tree | de9f2829ba418937e9d94705953b6a5da25c5b3c | |
parent | 666d91b278c5419915ce73a3d35369b32952b208 (diff) | |
download | rust-async-global-executor-accepted/tizen_rust.tar.gz rust-async-global-executor-accepted/tizen_rust.tar.bz2 rust-async-global-executor-accepted/tizen_rust.zip |
[ 65s] running 1 test
[ 65s] test tokio::test::spawn_tokio ... ok
[ 65s]
[ 65s] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s
-rw-r--r-- | packaging/rust-async-global-executor.spec | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packaging/rust-async-global-executor.spec b/packaging/rust-async-global-executor.spec index 9b073c0..b9f2653 100644 --- a/packaging/rust-async-global-executor.spec +++ b/packaging/rust-async-global-executor.spec @@ -74,6 +74,18 @@ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:%{_rust_dylibdir} 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="async-io"' \ + --cfg='feature="tokio"' \ + ./src/lib.rs + +./%{real_crate_name} +%endif + %clean %post -p /sbin/ldconfig |