diff options
author | 김명운/Tizen Platform Lab(SR)/삼성전자 <myoungwoon.kim@samsung.com> | 2023-05-12 16:44:57 +0900 |
---|---|---|
committer | GitHub Enterprise <noreply-CODE@samsung.com> | 2023-05-12 16:44:57 +0900 |
commit | 88fa87f6aab6cd83b2d85025b546db669da31201 (patch) | |
tree | fd9178a356cbe1003b533cde93036f9893e61dc5 | |
parent | fe4b84cb6c34e0685879803787e181880ce33c9a (diff) | |
parent | 7e6e699f73872da188dfa6131377775b26b08f98 (diff) | |
download | rust-serde_derive-accepted/tizen_unified.tar.gz rust-serde_derive-accepted/tizen_unified.tar.bz2 rust-serde_derive-accepted/tizen_unified.zip |
Merge pull request #1 from myoungwoon-kim/devtizen_9.0_m2_releaseaccepted/tizen/unified/x/20240328.130857accepted/tizen/unified/dev/20240620.002420accepted/tizen/unified/20240328.123225accepted/tizen/rust/20231016.021858accepted/tizen/9.0/unified/20241030.233559tizen_9.0tizenaccepted/tizen_unified_xaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_rustaccepted/tizen_9.0_unified
Add unittest
-rw-r--r-- | packaging/rust-serde_derive.spec | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packaging/rust-serde_derive.spec b/packaging/rust-serde_derive.spec index f54a08e..0bca659 100644 --- a/packaging/rust-serde_derive.spec +++ b/packaging/rust-serde_derive.spec @@ -50,6 +50,18 @@ 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=proc-macro \ + --crate-name=%{real_crate_name} \ + -lproc_macro2 \ + -lquote \ + -lsyn \ + ./src/lib.rs + +./%{real_crate_name} +%endif + %clean %post -p /sbin/ldconfig |