diff --git a/build/boost/test/Jamfile.jam b/build/boost/test/Jamfile.jam index 0550ae0..16b16bf 100644 --- a/build/boost/test/Jamfile.jam +++ b/build/boost/test/Jamfile.jam @@ -12,45 +12,26 @@ project : requirements BOOST_AUTO_TEST_MAIN BOOST_ALL_NO_LIB ; rule run-test ( name ) { - run $(name).cpp undefined.cpp /boost//unit_test_framework : : : : $(name) ; - run $(name).cpp undefined.cpp /boost//unit_test_framework : : : MOCK_MAX_ARGS=21 : $(name)_max_args ; - run $(name).cpp undefined.cpp /boost//unit_test_framework : : : MOCK_USE_CONVERSIONS : $(name)_use_conversions ; - run $(name).cpp undefined.cpp /boost//unit_test_framework : : : MOCK_NO_DECLTYPE : $(name)_no_decltype ; - run $(name).cpp undefined.cpp /boost//unit_test_framework : : : MOCK_NO_VARIADIC_MACROS : $(name)_no_variadic_macros ; - run $(name).cpp undefined.cpp /boost//unit_test_framework : : : MOCK_THREAD_SAFE : $(name)_thread_safe ; + run $(name) undefined.cpp /boost//unit_test_framework : : : : $(name)_ ; + run $(name) undefined.cpp /boost//unit_test_framework : : : MOCK_MAX_ARGS=21 : $(name)_max_args ; + run $(name) undefined.cpp /boost//unit_test_framework : : : MOCK_USE_CONVERSIONS : $(name)_use_conversions ; + run $(name) undefined.cpp /boost//unit_test_framework : : : MOCK_NO_DECLTYPE : $(name)_no_decltype ; + run $(name) undefined.cpp /boost//unit_test_framework : : : MOCK_NO_VARIADIC_MACROS : $(name)_no_variadic_macros ; + run $(name) undefined.cpp /boost//unit_test_framework : : : MOCK_THREAD_SAFE : $(name)_thread_safe ; } -alias mock_tests : - [ run-test test_constraint ] - [ run-test test_constraints ] - [ run-test test_exception ] - [ run-test test_integration ] - [ run-test test_log ] - [ run-test test_matcher ] - [ run-test test_max_args ] - [ run-test test_mock ] - [ run-test test_object ] - [ run-test test_sequence ] - [ run-test detail/test_function ] - [ run-test detail/test_invocation ] - [ run-test detail/test_is_functor ] - [ run-test detail/test_signature ] - [ run-test detail/test_type_name ] -; +rule run-tests +{ + for name in [ glob test_*.cpp detail/test_*.cpp ] { run-test $(name) ; } +} -alias mock_failures : - [ compile-fail fail_ambiguous_mock_method.cpp ] - [ compile-fail fail_constraint_functor_not_compatible.cpp ] - [ compile-fail fail_constraint_value_not_comparable.cpp ] - [ compile-fail fail_constraint_value_of_wrong_type_in_builtin_constraint.cpp ] - [ compile-fail fail_mismatch_type_in_returns_int_action.cpp ] - [ compile-fail fail_mismatch_type_in_returns_string_action.cpp ] - [ compile-fail fail_mismatch_type_in_returns_void_action.cpp ] - [ compile-fail fail_non_existing_base_class_method_in_mock_method.cpp ] - [ compile-fail fail_number_of_arguments_greater_than_max_constant.cpp ] - [ compile-fail fail_template_argument_without_tpl_macro.cpp ] - [ compile-fail fail_too_many_arguments_in_mock_method.cpp ] - [ compile-fail fail_wrong_number_of_arguments_in_with.cpp ] -; +alias mock_tests : [ run-tests ] ; + +rule run-failures +{ + for name in [ glob fail_*.cpp ] { compile-fail $(name) ; } +} + +alias mock_failures : [ run-failures ] ; # How to time bench_*.cpp compilation ?