summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2023-05-23 14:04:10 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2023-05-23 14:04:10 +0900
commit64b996db0fd54e519d3d48f769d7c91adc072078 (patch)
treeb728fbd90ff5d1271821b365a3ccdbef8e9d9ca9
parent832692403392e2d4f8f61d211b50389195702625 (diff)
downloadrust-document-features-64b996db0fd54e519d3d48f769d7c91adc072078.tar.gz
rust-document-features-64b996db0fd54e519d3d48f769d7c91adc072078.tar.bz2
rust-document-features-64b996db0fd54e519d3d48f769d7c91adc072078.zip
[ 31s] + ./document_features [ 31s] [ 31s] running 17 tests [ 31s] test test_get_balanced ... ok [ 31s] test tests::dependencies ... ok [ 31s] test tests::basic ... ok [ 31s] test tests::dots_in_feature ... ok [ 31s] test tests::multi_lines ... ok [ 31s] test tests::non_optional_dep1 ... ok [ 31s] test tests::non_optional_dep2 ... ok [ 31s] test tests::not_a_feature1 ... ok [ 31s] test tests::not_a_feature2 ... ok [ 31s] test tests::only_get_balanced_in_correct_table ... ok [ 31s] test tests::parse_error3 ... ok [ 31s] test tests::parse_error2 ... ok [ 31s] test tests::parse_error1 ... ok [ 31s] test tests::parse_error4 ... ok [ 31s] test tests::parse_error5 ... ok [ 31s] test tests::parse_error6 ... ok [ 31s] test tests::parse_error7 ... ok [ 31s] [ 31s] test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
-rw-r--r--packaging/rust-document-features.spec12
1 files changed, 12 insertions, 0 deletions
diff --git a/packaging/rust-document-features.spec b/packaging/rust-document-features.spec
index f9ee662..3a7aa80 100644
--- a/packaging/rust-document-features.spec
+++ b/packaging/rust-document-features.spec
@@ -51,6 +51,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} \
+ --cfg='feature="default"' \
+ %{?rustc_edition:--edition=%{rustc_edition}} \
+ %rust_dylib_extern litrs \
+ ./lib.rs
+
+./%{real_crate_name}
+%endif
+
%clean
%post -p /sbin/ldconfig