Index: test/Jamfile.v2 =================================================================== --- test/Jamfile.v2 (revision 50434) +++ test/Jamfile.v2 (working copy) @@ -27,6 +27,28 @@ ] ; } +rule test-btl-lib-mt ( test-rule : test-name : lib-name ? : pattern_file * : source_files * : extra-libs ? ) +{ + source_files ?= $(test-name).cpp ; + + return [ $(test-rule) $(source_files) ../build//$(lib-name) $(extra-libs) + : #args + : $(pattern_file) + : #on + # Activating -pedantic finds more gotchas + # Unfortunately, this warns about the use of "long long" in gcc's own stdlib + # So deactivate those warnings again + gcc:-pedantic + gcc:-Wno-long-long + borland:-w-8080 + msvc-6.5:static + msvc-8.0:_SCL_SECURE_NO_DEPRECATE + BOOST_TEST_NO_AUTO_LINK=1 # requirements + multi + : $(test-name) + ] ; +} + test-suite "basics_test" : [ test-btl-lib run : class_properties_test : boost_unit_test_framework ] @@ -59,8 +81,11 @@ [ test-btl-lib run : token_iterator_test : boost_unit_test_framework ] [ test-btl-lib run : boost_check_equal_str : boost_unit_test_framework ] [ test-btl-lib run : test_tree_management_test : boost_unit_test_framework ] - [ test-btl-lib run : sync_access_test : boost_unit_test_framework/static : : : /boost/thread//boost_thread ] + ; +test-suite "multithreaded_test" + : + [ test-btl-lib-mt run : sync_access_test : boost_unit_test_framework/static : : : /boost/thread//boost_thread ] ; # A target that runs all the tests