diff options
author | 김명운/Tizen Platform Lab(SR)/삼성전자 <myoungwoon.kim@samsung.com> | 2023-05-12 09:30:39 +0900 |
---|---|---|
committer | GitHub Enterprise <noreply-CODE@samsung.com> | 2023-05-12 09:30:39 +0900 |
commit | 657e20c73fd54605b98123f50737b090289c3eea (patch) | |
tree | f6eea421067a2d94a629d9e13798f9ce0676238b | |
parent | bcb8605b91c7d2d7fb1a24813addb80c1c5660cf (diff) | |
parent | 468579448adf515abd0b19627ccfc0e2df1e06b2 (diff) | |
download | rust-signal-hook-registry-accepted/tizen_unified.tar.gz rust-signal-hook-registry-accepted/tizen_unified.tar.bz2 rust-signal-hook-registry-accepted/tizen_unified.zip |
Merge pull request #1 from myoungwoon-kim/devtizen_9.0_m2_releaseaccepted/tizen/unified/x/20240328.130904accepted/tizen/unified/dev/20240620.002447accepted/tizen/unified/20240328.123251accepted/tizen/rust/20231016.021922accepted/tizen/9.0/unified/20241030.232628tizen_9.0tizenaccepted/tizen_unified_xaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_rustaccepted/tizen_9.0_unified
Add unittest
-rw-r--r-- | packaging/rust-signal-hook-registry.spec | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packaging/rust-signal-hook-registry.spec b/packaging/rust-signal-hook-registry.spec index 3aaa49a..3129fa6 100644 --- a/packaging/rust-signal-hook-registry.spec +++ b/packaging/rust-signal-hook-registry.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}} \ + --extern libc=%{_rust_dylibdir}/liblibc.so \ + ./src/lib.rs + +./%{real_crate_name} +%endif + %clean %post -p /sbin/ldconfig |