boost::unit_test_framework::test_suite* init_unit_test_suite(int, char*[]) { boost::unit_test_framework::test_suite* test = BOOST_TEST_SUITE("Boost.Fiber: futures test suite"); test->add(BOOST_TEST_CASE(test_promise_create)); test->add(BOOST_TEST_CASE(test_promise_create_ref)); test->add(BOOST_TEST_CASE(test_promise_create_void)); test->add(BOOST_TEST_CASE(test_promise_move)); test->add(BOOST_TEST_CASE(test_promise_move_ref)); test->add(BOOST_TEST_CASE(test_promise_move_void)); test->add(BOOST_TEST_CASE(test_promise_swap)); test->add(BOOST_TEST_CASE(test_promise_swap_ref)); test->add(BOOST_TEST_CASE(test_promise_swap_void)); test->add(BOOST_TEST_CASE(test_promise_get_future)); test->add(BOOST_TEST_CASE(test_promise_get_future_ref)); test->add(BOOST_TEST_CASE(test_promise_get_future_void)); test->add(BOOST_TEST_CASE(test_promise_set_value)); test->add(BOOST_TEST_CASE(test_promise_set_value_ref)); test->add(BOOST_TEST_CASE(test_promise_set_value_void)); test->add(BOOST_TEST_CASE(test_promise_set_exception)); test->add(BOOST_TEST_CASE(test_promise_set_exception_ref)); test->add(BOOST_TEST_CASE(test_promise_set_exception_void)); test->add(BOOST_TEST_CASE(test_future_create)); test->add(BOOST_TEST_CASE(test_future_create_ref)); test->add(BOOST_TEST_CASE(test_future_create_void)); test->add(BOOST_TEST_CASE(test_future_move)); test->add(BOOST_TEST_CASE(test_future_move_ref)); test->add(BOOST_TEST_CASE(test_future_move_void)); test->add(BOOST_TEST_CASE(test_future_swap)); test->add(BOOST_TEST_CASE(test_future_swap_ref)); test->add(BOOST_TEST_CASE(test_future_swap_void)); test->add(BOOST_TEST_CASE(test_future_get)); test->add(BOOST_TEST_CASE(test_future_get_ref)); test->add(BOOST_TEST_CASE(test_future_get_ref)); test->add(BOOST_TEST_CASE(test_future_get_void)); test->add(BOOST_TEST_CASE(test_future_share)); test->add(BOOST_TEST_CASE(test_future_share_ref)); test->add(BOOST_TEST_CASE(test_future_share_void)); test->add(BOOST_TEST_CASE(test_future_wait)); test->add(BOOST_TEST_CASE(test_future_wait_ref)); test->add(BOOST_TEST_CASE(test_future_wait_void)); test->add(BOOST_TEST_CASE(test_future_wait_with_fiber_1)); test->add(BOOST_TEST_CASE(test_future_wait_with_fiber_2)); // test->add(BOOST_TEST_CASE(test_shared_future_move)); // test->add(BOOST_TEST_CASE(test_shared_future_move_ref)); // test->add(BOOST_TEST_CASE(test_shared_future_move_void)); test->add(BOOST_TEST_CASE(test_packaged_task_create)); test->add(BOOST_TEST_CASE(test_packaged_task_create_void)); test->add(BOOST_TEST_CASE(test_packaged_task_move)); test->add(BOOST_TEST_CASE(test_packaged_task_move_void)); test->add(BOOST_TEST_CASE(test_packaged_task_swap)); test->add(BOOST_TEST_CASE(test_packaged_task_swap_void)); test->add(BOOST_TEST_CASE(test_packaged_task_reset)); test->add(BOOST_TEST_CASE(test_packaged_task_reset_void)); test->add(BOOST_TEST_CASE(test_packaged_task_get_future)); test->add(BOOST_TEST_CASE(test_packaged_task_get_future_void)); test->add(BOOST_TEST_CASE(test_packaged_task_exec)); test->add(BOOST_TEST_CASE(test_packaged_task_exec_ref)); test->add(BOOST_TEST_CASE(test_packaged_task_exec_void)); test->add(BOOST_TEST_CASE(test_packaged_task_exception)); test->add(BOOST_TEST_CASE(test_packaged_task_exception_void)); test->add(BOOST_TEST_CASE(test_async_1)); test->add(BOOST_TEST_CASE(test_async_2)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("basic_streambuf"); test->add(BOOST_TEST_CASE(&null_test)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("basic_waitable_timer"); test->add(BOOST_TEST_CASE(&null_test)); return test; }
//------------------------------------------------------------------------------ test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("windows/random_access_handle"); test->add(BOOST_TEST_CASE(&windows_random_access_handle_compile::test)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("ip/resolver_service"); test->add(BOOST_TEST_CASE(&null_test)); return test; }
boost::unit_test::test_suite * init_unit_test_suite( int, char* []) { boost::unit_test::test_suite * test = BOOST_TEST_SUITE("Boost.Fiber: fiber test suite"); test->add( BOOST_TEST_CASE( & test_scheduler_dtor) ); test->add( BOOST_TEST_CASE( & test_join_fn) ); test->add( BOOST_TEST_CASE( & test_join_memfn) ); test->add( BOOST_TEST_CASE( & test_join_copyable) ); test->add( BOOST_TEST_CASE( & test_join_moveable) ); test->add( BOOST_TEST_CASE( & test_join_lambda) ); test->add( BOOST_TEST_CASE( & test_join_bind) ); test->add( BOOST_TEST_CASE( & test_join_in_fiber) ); test->add( BOOST_TEST_CASE( & test_move_fiber) ); test->add( BOOST_TEST_CASE( & test_yield) ); test->add( BOOST_TEST_CASE( & test_sleep_for) ); test->add( BOOST_TEST_CASE( & test_sleep_until) ); test->add( BOOST_TEST_CASE( & test_detach) ); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("error"); test->add(BOOST_TEST_CASE(&error_test)); return test; }
boost::unit_test::test_suite* init_unit_test_suite( int argc, char* argv[] ) { const std::size_t number_of_names = 18; const char* names[number_of_names] = { "jvb/tests/ReadStaticAttributeArrayBoolean" , "jvb/tests/ReadStaticAttributeArrayByte" , "jvb/tests/ReadStaticAttributeArrayChar" , "jvb/tests/ReadStaticAttributeArrayDouble" , "jvb/tests/ReadStaticAttributeArrayFloat" , "jvb/tests/ReadStaticAttributeArrayInt" , "jvb/tests/ReadStaticAttributeArrayLong" , "jvb/tests/ReadStaticAttributeArrayObject" , "jvb/tests/ReadStaticAttributeArrayShort" , "jvb/tests/ReadStaticAttributeBoolean" , "jvb/tests/ReadStaticAttributeByte" , "jvb/tests/ReadStaticAttributeChar" , "jvb/tests/ReadStaticAttributeDouble" , "jvb/tests/ReadStaticAttributeFloat" , "jvb/tests/ReadStaticAttributeInt" , "jvb/tests/ReadStaticAttributeLong" , "jvb/tests/ReadStaticAttributeObject" , "jvb/tests/ReadStaticAttributeShort" }; if(argc != number_of_names+1) { std::cout << "Must be passed 3 classes files compiled for tests" << std::endl; std::abort(); } jvb::jvm jvm; jvb::environment e = jvm.environment(); for(std::size_t i = 0; i != number_of_names; ++i) { std::cout << "loading " << argv[i+1] << " with " << names[i] << std::endl; e.load_class(argv[i+1], names[i]); } boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_array_boolean, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_array_byte, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_array_char, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_array_double, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_array_float, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_array_int, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_array_long, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_array_object, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_array_short, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_boolean, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_byte, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_char, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_double, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_float, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_int, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_long, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_object, jvm, e) )); boost::unit_test::framework::master_test_suite() .add( BOOST_TEST_CASE( boost::bind(&read_static_attribute_short, jvm, e) )); return 0; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("serial_port_base"); test->add(BOOST_TEST_CASE(&serial_port_base_compile::test)); return test; }
boost::unit_test_framework::test_suite* init_unit_test_suite(int, char*[]) { boost::unit_test_framework::test_suite* test = BOOST_TEST_SUITE("Boost.Fiber: promise test suite"); test->add(BOOST_TEST_CASE(test_promise_create)); test->add(BOOST_TEST_CASE(test_promise_create_ref)); test->add(BOOST_TEST_CASE(test_promise_create_void)); test->add(BOOST_TEST_CASE(test_promise_move)); test->add(BOOST_TEST_CASE(test_promise_move_ref)); test->add(BOOST_TEST_CASE(test_promise_move_void)); test->add(BOOST_TEST_CASE(test_promise_swap)); test->add(BOOST_TEST_CASE(test_promise_swap_ref)); test->add(BOOST_TEST_CASE(test_promise_swap_void)); test->add(BOOST_TEST_CASE(test_promise_get_future)); test->add(BOOST_TEST_CASE(test_promise_get_future_ref)); test->add(BOOST_TEST_CASE(test_promise_get_future_void)); test->add(BOOST_TEST_CASE(test_promise_set_value)); test->add(BOOST_TEST_CASE(test_promise_set_value_move)); test->add(BOOST_TEST_CASE(test_promise_set_value_ref)); test->add(BOOST_TEST_CASE(test_promise_set_value_void)); test->add(BOOST_TEST_CASE(test_promise_set_exception)); test->add(BOOST_TEST_CASE(test_promise_set_exception_ref)); test->add(BOOST_TEST_CASE(test_promise_set_exception_void)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("stream_socket_service"); test->add(BOOST_TEST_CASE(&null_test)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("local/datagram_protocol"); test->add(BOOST_TEST_CASE(&local_datagram_protocol_socket_compile::test)); return test; }
boost::unit_test::test_suite * init_unit_test_suite( int, char* []) { boost::unit_test_framework::test_suite * test = BOOST_TEST_SUITE("Boost.Fiber: lock test suite"); test->add( BOOST_TEST_CASE( & test_lock) ); test->add( BOOST_TEST_CASE( & test_defer_lock) ); test->add( BOOST_TEST_CASE( & test_adopt_lock) ); test->add( BOOST_TEST_CASE( & test_try_lock) ); test->add( BOOST_TEST_CASE( & test_lock_twice) ); test->add( BOOST_TEST_CASE( & test_try_lock_twice) ); test->add( BOOST_TEST_CASE( & test_unlock_twice) ); test->add( BOOST_TEST_CASE( & test_default_ctor) ); test->add( BOOST_TEST_CASE( & test_lock_concept) ); test->add( BOOST_TEST_CASE( & test_try_lock_concept) ); test->add( BOOST_TEST_CASE( & test_swap) ); return test; }
pdalboost::unit_test::test_suite* init_unit_test_suite(int, char* []) { pdalboost::unit_test::test_suite* test = BOOST_TEST_SUITE("mapped_file test"); test->add(BOOST_TEST_CASE(&path_test)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("signal_set"); test->add(BOOST_TEST_CASE(&signal_set_compile::test)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("local/connect_pair"); test->add(BOOST_TEST_CASE(&local_connect_pair_compile::test)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("basic_datagram_socket"); test->add(BOOST_TEST_CASE(&null_test)); return test; }
/////////////////////////////////////////////////////////////////////////////// // init_unit_test_suite // test_suite* init_unit_test_suite( int argc, char* argv[] ) { test_suite *test = BOOST_TEST_SUITE("test6u"); test->add(BOOST_TEST_CASE(&test_main)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("ip/basic_resolver_query"); test->add(BOOST_TEST_CASE(&null_test)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("ip/address_v6"); test->add(BOOST_TEST_CASE(&ip_address_v6_compile::test)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("completion_condition"); test->add(BOOST_TEST_CASE(&null_test)); return test; }
boost::unit_test_framework::test_suite* init_unit_test_suite(int, char*[]) { boost::unit_test_framework::test_suite* test = BOOST_TEST_SUITE("Boost.Fiber: packaged_task test suite"); test->add(BOOST_TEST_CASE(test_packaged_task_create)); test->add(BOOST_TEST_CASE(test_packaged_task_create_move)); test->add(BOOST_TEST_CASE(test_packaged_task_create_void)); test->add(BOOST_TEST_CASE(test_packaged_task_move)); test->add(BOOST_TEST_CASE(test_packaged_task_move_move)); test->add(BOOST_TEST_CASE(test_packaged_task_move_void)); test->add(BOOST_TEST_CASE(test_packaged_task_swap)); test->add(BOOST_TEST_CASE(test_packaged_task_swap_move)); test->add(BOOST_TEST_CASE(test_packaged_task_swap_void)); test->add(BOOST_TEST_CASE(test_packaged_task_reset)); test->add(BOOST_TEST_CASE(test_packaged_task_reset_destruction)); test->add(BOOST_TEST_CASE(test_packaged_task_reset_move)); test->add(BOOST_TEST_CASE(test_packaged_task_reset_void)); test->add(BOOST_TEST_CASE(test_packaged_task_get_future)); test->add(BOOST_TEST_CASE(test_packaged_task_get_future_move)); test->add(BOOST_TEST_CASE(test_packaged_task_get_future_void)); test->add(BOOST_TEST_CASE(test_packaged_task_exec)); test->add(BOOST_TEST_CASE(test_packaged_task_exec_move)); test->add(BOOST_TEST_CASE(test_packaged_task_exec_param)); test->add(BOOST_TEST_CASE(test_packaged_task_exec_ref)); test->add(BOOST_TEST_CASE(test_packaged_task_exec_void)); test->add(BOOST_TEST_CASE(test_packaged_task_exception)); test->add(BOOST_TEST_CASE(test_packaged_task_exception_move)); test->add(BOOST_TEST_CASE(test_packaged_task_exception_void)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("ssl/stream"); test->add(BOOST_TEST_CASE(&ssl_stream_compile::test)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("buffers_iterator"); test->add(BOOST_TEST_CASE(&buffers_iterator_compile::test)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("ip/host_name"); test->add(BOOST_TEST_CASE(&ip_host_name_compile::test)); return test; }
boost::unit_test::test_suite* init_unit_test_suite(int, char*[]) { boost::unit_test::test_suite* test = BOOST_TEST_SUITE("Boost.Threads: generic locks test suite"); test->add(BOOST_TEST_CASE(&test_lock_two_uncontended)); test->add(BOOST_TEST_CASE(&test_lock_two_other_thread_locks_in_order)); test->add(BOOST_TEST_CASE(&test_lock_two_other_thread_locks_in_opposite_order)); test->add(BOOST_TEST_CASE(&test_lock_five_uncontended)); test->add(BOOST_TEST_CASE(&test_lock_five_other_thread_locks_in_order)); test->add(BOOST_TEST_CASE(&test_lock_five_other_thread_locks_in_different_order)); test->add(BOOST_TEST_CASE(&test_lock_five_in_range)); test->add(BOOST_TEST_CASE(&test_lock_five_in_range_custom_iterator)); test->add(BOOST_TEST_CASE(&test_lock_ten_in_range_inherited_mutex)); test->add(BOOST_TEST_CASE(&test_lock_ten_other_thread_locks_in_different_order)); test->add(BOOST_TEST_CASE(&test_try_lock_two_uncontended)); test->add(BOOST_TEST_CASE(&test_try_lock_two_first_locked)); test->add(BOOST_TEST_CASE(&test_try_lock_two_second_locked)); test->add(BOOST_TEST_CASE(&test_try_lock_three)); test->add(BOOST_TEST_CASE(&test_try_lock_four)); test->add(BOOST_TEST_CASE(&test_try_lock_five)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("windows/stream_handle_service"); test->add(BOOST_TEST_CASE(&null_test)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("ip/address"); test->add(BOOST_TEST_CASE(&null_test)); return test; }
test_suite* init_unit_test_suite(int, char*[]) { test_suite* test = BOOST_TEST_SUITE("ssl/context_base"); test->add(BOOST_TEST_CASE(&null_test)); return test; }
boost::unit_test::test_suite * init_unit_test_suite( int, char* []) { boost::unit_test::test_suite * test = BOOST_TEST_SUITE("Boost.Context: captured_context test suite"); #if ! defined(BOOST_USE_EXECUTION_CONTEXT) test->add( BOOST_TEST_CASE( & test_move) ); test->add( BOOST_TEST_CASE( & test_memfn) ); test->add( BOOST_TEST_CASE( & test_exception) ); test->add( BOOST_TEST_CASE( & test_fp) ); test->add( BOOST_TEST_CASE( & test_stacked) ); test->add( BOOST_TEST_CASE( & test_stacked) ); test->add( BOOST_TEST_CASE( & test_prealloc) ); test->add( BOOST_TEST_CASE( & test_ontop) ); test->add( BOOST_TEST_CASE( & test_ontop_exception) ); test->add( BOOST_TEST_CASE( & test_termination) ); #else test->add( BOOST_TEST_CASE( & test_dummy) ); #endif return test; }