diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index aab2211..7deae1c 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -8,17 +8,6 @@ if(HAVE_BOOST_TEST) boost_test_jamfile(FILE Jamfile.v2 LINK_LIBRARIES Boost::core Boost::static_assert Boost::type_traits) -set(BOOST_TEST_LINK_LIBRARIES Boost::core Boost::type_traits) - -boost_test(TYPE run SOURCES eif_constructors.cpp) -boost_test(TYPE run SOURCES eif_dummy_arg_disambiguation.cpp) -boost_test(TYPE run SOURCES eif_lazy.cpp) -boost_test(TYPE run SOURCES eif_lazy_test.cpp) -boost_test(TYPE run SOURCES eif_member_templates.cpp) -boost_test(TYPE run SOURCES eif_namespace_disambiguation.cpp) -boost_test(TYPE run SOURCES eif_no_disambiguation.cpp) -boost_test(TYPE run SOURCES eif_partial_specializations.cpp) - set(BOOST_TEST_LINK_LIBRARIES Boost::core Boost::throw_exception) boost_test(TYPE run SOURCES no_exceptions_support_test.cpp) diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index c1372f4..72414e3 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -35,6 +35,8 @@ local pedantic-errors = pedantic gcc:on clang:on ; +local CPP11 = [ requires cxx11_variadic_templates cxx11_template_aliases cxx11_decltype cxx11_constexpr cxx11_noexcept cxx11_ref_qualifiers ] ; + # quick test (for CI) run quick.cpp ; @@ -83,14 +85,14 @@ compile-fail ref_implicit_fail4.cpp run ref_cv_test.cpp ; run ref_conversion_test.cpp ; -run eif_constructors.cpp : ; -run eif_dummy_arg_disambiguation.cpp : ; -run eif_lazy.cpp : ; -run eif_lazy_test.cpp : ; -run eif_member_templates.cpp : ; -run eif_namespace_disambiguation.cpp : ; -run eif_no_disambiguation.cpp : ; -run eif_partial_specializations.cpp : ; +run eif_constructors.cpp ; +run eif_dummy_arg_disambiguation.cpp ; +run eif_lazy.cpp ; +run eif_lazy_test.cpp ; +run eif_member_templates.cpp ; +run eif_namespace_disambiguation.cpp ; +run eif_no_disambiguation.cpp ; +run eif_partial_specializations.cpp ; compile-fail noncopyable_compile_fail.cpp : $(warnings-as-errors-off) ; @@ -201,7 +203,13 @@ run underlying_type.cpp ; compile-fail null_deleter_compile_fail_adl.cpp : $(warnings-as-errors-off) ; -run fclose_deleter_test.cpp /boost/move//boost_move /boost/smart_ptr//boost_smart_ptr : : : windows:_CRT_SECURE_NO_WARNINGS windows:_CRT_SECURE_NO_DEPRECATE ; +run fclose_deleter_test.cpp : : : + $(CPP11) + /boost/move//boost_move + /boost/smart_ptr//boost_smart_ptr + windows:_CRT_SECURE_NO_WARNINGS + windows:_CRT_SECURE_NO_DEPRECATE ; + compile-fail fclose_deleter_compile_fail_adl.cpp : windows:_CRT_SECURE_NO_WARNINGS windows:_CRT_SECURE_NO_DEPRECATE $(warnings-as-errors-off) ; @@ -209,7 +217,6 @@ run functor_test.cpp ; compile-fail functor_compile_fail_adl.cpp : $(warnings-as-errors-off) ; - run pointer_traits_pointer_test.cpp ; run pointer_traits_element_type_test.cpp ; run pointer_traits_difference_type_test.cpp ; @@ -385,7 +392,7 @@ run sv_stream_insert_test.cpp : : : $(pedantic-errors) ; run sv_conversion_test.cpp : : : $(pedantic-errors) ; -run sv_conversion_test2.cpp /boost/utility//boost_utility : ; +run sv_conversion_test2.cpp : : : /boost/utility//boost_utility ; run sv_common_reference_test.cpp : : : $(pedantic-errors) ; compile sv_common_reference_test2.cpp ; @@ -423,8 +430,6 @@ run memory_resource_test.cpp ; run data_test.cpp ; run size_test.cpp ; -local CPP11 = [ requires cxx11_variadic_templates cxx11_template_aliases cxx11_decltype cxx11_constexpr cxx11_noexcept cxx11_ref_qualifiers ] ; - local with-serialization = /boost/serialization//boost_serialization/off $(warnings-as-errors-off) norecover:static $(CPP11) ; run serialization_nvp_test.cpp : : : $(with-serialization) norecover:no ;