summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2023-04-13 15:58:32 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2023-04-13 15:58:32 +0900
commit6ef28b020081a90df18559f7fa2359aac4fd6f55 (patch)
treea63fa038fd377d7d6411303bcd56d43bf4d24395
parenta618cf54ed9fbdc2f895c825076e9ddc78029570 (diff)
downloadrust-anes-accepted/tizen_rust.tar.gz
rust-anes-accepted/tizen_rust.tar.bz2
rust-anes-accepted/tizen_rust.zip
[ 16s] running 42 tests [ 16s] test macros::tests::csi ... ok [ 16s] test macros::tests::dynamic_struct_sequence ... ok [ 16s] test macros::tests::esc ... ok [ 16s] test macros::tests::execute_allows_trailing_comma ... ok [ 16s] test macros::tests::execute_does_flush ... ok [ 16s] test macros::tests::execute_writes_multiple_sequences ... ok [ 16s] test macros::tests::execute_writes_single_sequence ... ok [ 16s] test macros::tests::queue_allows_trailing_comma ... ok [ 16s] test macros::tests::queue_does_not_flush ... ok [ 16s] test macros::tests::queue_writes_multiple_sequences ... ok [ 16s] test macros::tests::queue_writes_single_sequence ... ok [ 16s] test macros::tests::sgr ... ok [ 16s] test sequences::attribute::tests::set_attribute ... ok [ 16s] test sequences::attribute::tests::reset_attributes ... ok [ 16s] test macros::tests::static_struct_sequence ... ok [ 16s] test macros::tests::static_enum_sequence ... ok [ 16s] test sequences::buffer::tests::clear_buffer ... ok [ 16s] test sequences::buffer::tests::scroll_buffer_down ... ok [ 16s] test sequences::buffer::tests::clear_line ... ok [ 16s] test sequences::buffer::tests::switch_buffer_to_alternate ... ok [ 16s] test sequences::buffer::tests::scroll_buffer_up ... ok [ 16s] test sequences::color::tests::set_background_color ... ok [ 16s] test sequences::color::tests::set_foreground_color ... ok [ 16s] test sequences::cursor::tests::disable_cursor_blinking ... ok [ 16s] test sequences::cursor::tests::enable_cursor_blinking ... ok [ 16s] test sequences::cursor::tests::hide_cursor ... ok [ 16s] test sequences::cursor::tests::move_cursor_down ... ok [ 16s] test sequences::buffer::tests::switch_buffer_to_main ... ok [ 16s] test sequences::cursor::tests::move_cursor_to_column ... ok [ 16s] test sequences::cursor::tests::move_cursor_right ... ok [ 16s] test sequences::cursor::tests::move_cursor_to ... ok [ 16s] test sequences::cursor::tests::move_cursor_left ... ok [ 16s] test sequences::cursor::tests::move_cursor_to_previous_line ... ok [ 16s] test sequences::cursor::tests::move_cursor_to_next_line ... ok [ 16s] test sequences::cursor::tests::move_cursor_up ... ok [ 16s] test sequences::cursor::tests::report_cursor_position ... ok [ 16s] test sequences::cursor::tests::restore_cursor_position ... ok [ 16s] test sequences::cursor::tests::save_cursor_position ... ok [ 16s] test sequences::terminal::tests::disable_mouse_events ... ok [ 16s] test sequences::cursor::tests::show_cursor ... ok [ 16s] test sequences::terminal::tests::enable_mouse_events ... ok [ 16s] test sequences::terminal::tests::resize_text_area ... ok [ 16s] [ 16s] test result: ok. 42 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s
-rw-r--r--packaging/rust-anes.spec10
1 files changed, 10 insertions, 0 deletions
diff --git a/packaging/rust-anes.spec b/packaging/rust-anes.spec
index b752ba7..f357baa 100644
--- a/packaging/rust-anes.spec
+++ b/packaging/rust-anes.spec
@@ -58,6 +58,16 @@ cp %{SOURCE3} .
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}} \
+ ./src/lib.rs
+
+./%{real_crate_name}
+%endif
+
%clean
%post -p /sbin/ldconfig