summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoohyun Jung <wh0705.jung@samsung.com>2023-05-04 16:17:50 +0900
committerWoohyun Jung <wh0705.jung@samsung.com>2023-05-04 16:17:50 +0900
commitdc042995562f3d44a5833d384da54abfbc483285 (patch)
treefdc775514c44151da85c550259aa193f713bd148
parenta21247b12f6c73388ac786d70bf43a0d9fba7e50 (diff)
downloadrust-rayon-core-accepted/tizen_rust.tar.gz
rust-rayon-core-accepted/tizen_rust.tar.bz2
rust-rayon-core-accepted/tizen_rust.zip
[ 160s] + ./rayon_core [ 160s] [ 160s] running 101 tests [ 160s] test broadcast::test::broadcast_global ... ok [ 160s] test broadcast::test::broadcast_after_spawn ... ok [ 160s] test broadcast::test::broadcast_after_spawn_broadcast ... ok [ 160s] test broadcast::test::spawn_broadcast_global ... ok [ 160s] test broadcast::test::broadcast_panic_many ... ok [ 160s] test broadcast::test::broadcast_panic_one ... ok [ 160s] test broadcast::test::broadcast_pool ... ok [ 160s] test broadcast::test::broadcast_mutual ... ok [ 160s] test broadcast::test::broadcast_self ... ok [ 160s] test broadcast::test::spawn_broadcast_panic_many ... ok [ 160s] test join::test::join_context_both ... ok [ 160s] test broadcast::test::spawn_broadcast_mutual ... ok [ 160s] test join::test::join_context_neither ... ok [ 160s] test broadcast::test::spawn_broadcast_panic_one ... ok [ 160s] test join::test::panic_b_still_executes ... ok [ 160s] test join::test::panic_propagate_a - should panic ... ok [ 160s] test join::test::join_context_second ... ok [ 160s] test broadcast::test::spawn_broadcast_self ... ok [ 160s] test broadcast::test::spawn_broadcast_pool ... ok [ 160s] test join::test::panic_propagate_b - should panic ... ok [ 160s] test join::test::panic_propagate_both - should panic ... ok [ 160s] test join::test::sort ... ok [ 160s] test scope::test::fifo_order ... ok [ 160s] test scope::test::lifo_order ... ok [ 160s] test scope::test::linear_stack_growth ... ok [ 160s] test scope::test::mixed_fifo_lifo_order ... ok [ 160s] test scope::test::mixed_lifetime_scope ... ok [ 160s] test scope::test::mixed_lifetime_scope_fifo ... ok [ 160s] test scope::test::mixed_fifo_order ... ok [ 160s] test scope::test::mixed_lifo_fifo_order ... ok [ 160s] test scope::test::mixed_lifo_order ... ok [ 160s] test scope::test::nested_fifo_lifo_order ... ok [ 160s] test join::test::sort_in_pool ... ok [ 160s] test scope::test::nested_fifo_order ... ok [ 160s] test scope::test::nested_lifo_fifo_order ... ok [ 160s] test scope::test::panic_propagate_nested_scope_spawn - should panic ... ok [ 160s] test scope::test::nested_lifo_order ... ok [ 160s] test scope::test::panic_propagate_nested_spawn - should panic ... ok [ 160s] test scope::test::panic_propagate_scope - should panic ... ok [ 160s] test scope::test::panic_propagate_spawn - should panic ... ok [ 160s] test scope::test::panic_propagate_still_execute_1 ... ok [ 160s] test scope::test::panic_propagate_still_execute_2 ... ok [ 160s] test scope::test::panic_propagate_still_execute_3 ... ok [ 160s] test scope::test::panic_propagate_still_execute_4 ... ok [ 160s] test scope::test::scope_empty ... ok [ 160s] test scope::test::scope_divide_and_conquer ... ok [ 160s] test scope::test::scope_fifo_spawn_broadcast ... ok [ 161s] test scope::test::scope_result ... ok [ 161s] test scope::test::scope_spawn_broadcast ... ok [ 161s] test scope::test::scope_spawn_broadcast_nested ... ok [ 161s] test scope::test::scope_two ... ok [ 161s] test scope::test::static_scope ... ok [ 161s] test scope::test::static_scope_fifo ... ok [ 161s] test scope::test::scope_spawn_broadcast_barrier ... ok [ 161s] test scope::test::update_tree ... ok [ 161s] test scope::test::scope_spawn_broadcast_panic_many ... ok [ 161s] test scope::test::scope_spawn_broadcast_panic_one ... ok [ 161s] test spawn::test::fifo_lifo_order ... ok [ 161s] test spawn::test::fifo_order ... ok [ 161s] test spawn::test::lifo_order ... ok [ 161s] test spawn::test::lifo_fifo_order ... ok [ 161s] test spawn::test::mixed_fifo_lifo_order ... ok [ 161s] test spawn::test::mixed_lifo_fifo_order ... ok [ 161s] test spawn::test::spawn_then_join_in_worker ... ok [ 161s] test spawn::test::spawn_then_join_outside_worker ... ok [ 161s] test test::check_error_send_sync ... ok [ 161s] test spawn::test::custom_panic_handler_and_nested_spawn ... ok [ 161s] test spawn::test::custom_panic_handler_and_spawn ... ok [ 161s] test test::configuration ... ok [ 161s] test spawn::test::panic_fwd ... ok [ 161s] test test::cleared_current_thread ... ok [ 161s] test thread_pool::test::in_place_scope_fifo_no_deadlock ... ok [ 161s] test thread_pool::test::in_place_scope_no_deadlock ... ok [ 161s] test spawn::test::termination_while_things_are_executing ... ok [ 161s] test thread_pool::test::mutual_install ... ok [ 161s] test test::default_pool ... ok [ 161s] test test::check_config_build ... ok [ 161s] test test::exit_callback_called ... ok [ 161s] test test::handler_panics_handled_correctly ... ok [ 161s] test test::start_callback_called ... ok [ 161s] test thread_pool::test::scope_fifo_order ... ok [ 161s] test thread_pool::test::scope_lifo_order ... ok [ 161s] test thread_pool::test::nested_fifo_scopes ... ok [ 161s] test thread_pool::test::check_thread_pool_new ... ok [ 161s] test thread_pool::test::self_install ... ok [ 161s] test thread_pool::test::nested_scopes ... ok [ 161s] test test::worker_thread_index ... ok [ 161s] test thread_pool::test::spawn_fifo_order ... ok [ 161s] test thread_pool::test::spawn_lifo_order ... ok [ 161s] test thread_pool::test::yield_local_to_spawn ... ok [ 161s] test thread_pool::test::yield_now_to_spawn ... ok [ 161s] test thread_pool::test::panic_propagate - should panic ... ok [ 161s] test thread_pool::test::workers_stop ... ok [ 161s] test broadcast::test::broadcast_sleep_race ... ok [ 162s] test thread_pool::test::failed_thread_stack ... ok [ 162s] test join::test::join_counter_overflow ... ok [ 162s] test thread_pool::test::panic_thread_name ... ok [ 162s] test thread_pool::test::sleeper_stop ... ok [ 163s] test thread_pool::test::mutual_install_sleepy ... ok [ 163s] test broadcast::test::broadcast_mutual_sleepy ... ok [ 163s] test broadcast::test::spawn_broadcast_mutual_sleepy ... ok [ 163s] [ 163s] test result: ok. 101 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.85s
-rw-r--r--packaging/rust-rayon-core.spec17
1 files changed, 15 insertions, 2 deletions
diff --git a/packaging/rust-rayon-core.spec b/packaging/rust-rayon-core.spec
index 534ab18..572bde4 100644
--- a/packaging/rust-rayon-core.spec
+++ b/packaging/rust-rayon-core.spec
@@ -34,10 +34,12 @@ Requires: rust-num_cpus
# ==========================================================
# dev-dependencies
# ==========================================================
+%if 0%{?run_tests}
# BuildRequires: rust-libc
-# BuildRequires: rust-rand
-# BuildRequires: rust-rand_xorshift
+BuildRequires: rust-rand
+BuildRequires: rust-rand_xorshift
# BuildRequires: rust-scoped-tls
+%endif
%description
@@ -58,6 +60,17 @@ cp %{SOURCE1} .
%{?rustc_edition:--edition=%{rustc_edition}} \
./src/lib.rs
+%check
+%if 0%{?run_tests}
+%{rustc_std_build} --test --crate-type=dylib \
+ --crate-name=%{real_crate_name} \
+ %{?rustc_edition:--edition=%{rustc_edition}} \
+ %rust_dylib_extern rand \
+ %rust_dylib_extern rand_xorshift \
+ ./src/lib.rs
+
+./%{real_crate_name}
+%endif
# ==========================================================
# install section
# ==========================================================