From d8389ffda600ce73d62b077616987744f5f83453 Mon Sep 17 00:00:00 2001 From: Edward Diener Date: Thu, 5 Jan 2017 09:57:01 -0500 Subject: [PATCH] Exclude tests for gcc when C++0x is not supported. This should fix some test matrices for old versions of gcc. --- test/Jamfile.v2 | 48 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 39 insertions(+), 9 deletions(-) diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 7ac4ad9..562ee9e 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -17,7 +17,22 @@ project preprocessor_tests : requirements on msvc:all ; -test-suite preprocessor +alias preprocessor : : + gcc + 3.4 + ; + +alias preprocessor : : + gcc + 4.1 + ; + +alias preprocessor : : + gcc + 4.2 + ; + +alias preprocessor : [ compile arithmetic.cpp : gcc:-std=c++0x clang-linux:-std=c++0x ] [ compile array.cpp : gcc:-std=c++0x clang-linux:-std=c++0x ] @@ -37,7 +52,7 @@ test-suite preprocessor [ compile variadic.cpp : gcc:-std=c++0x clang-linux:-std=c++0x ] ; -test-suite preprocessor_nvm +alias preprocessor_nvm : [ compile arithmetic.cpp : BOOST_PP_VARIADICS=0 : arithmetic_nvm ] [ compile array.cpp : BOOST_PP_VARIADICS=0 : array_nvm ] @@ -55,7 +70,7 @@ test-suite preprocessor_nvm [ compile tuple.cpp : BOOST_PP_VARIADICS=0 : tuple_nvm ] ; -test-suite preprocessor_c +alias preprocessor_c : [ compile arithmetic.c : gcc:-std=c99 clang-linux:-std=c99 @@ -115,7 +130,7 @@ test-suite preprocessor_c ] ; -test-suite preprocessor_c_nvm +alias preprocessor_c_nvm : [ compile arithmetic.c : BOOST_PP_VARIADICS=0 @@ -179,19 +194,34 @@ test-suite preprocessor_c_nvm ] ; -test-suite preprocessor_isempty +alias preprocessor_isempty : : + gcc + 3.4 + ; + +alias preprocessor_isempty : : + gcc + 4.1 + ; + +alias preprocessor_isempty : : + gcc + 4.2 + ; + +alias preprocessor_isempty : [ compile isempty.cpp : gcc:-std=c++0x clang-linux:-std=c++0x ] [ compile-fail isempty_variadic_standard_failure.cpp : gcc:-std=c++0x clang-linux:-std=c++0x ] [ compile-fail isempty_variadic_standard_failure2.cpp : gcc:-std=c++0x clang-linux:-std=c++0x ] ; -test-suite preprocessor_isempty_nvm +alias preprocessor_isempty_nvm : [ compile isempty.cpp : BOOST_PP_VARIADICS=0 : isempty_nvm ] ; -test-suite preprocessor_isempty_c +alias preprocessor_isempty_c : [ compile isempty.c : gcc:-std=c99 clang-linux:-std=c99 @@ -207,7 +237,7 @@ test-suite preprocessor_isempty_c ] ; -test-suite preprocessor_isempty_c_nvm +alias preprocessor_isempty_c_nvm : [ compile isempty.c : BOOST_PP_VARIADICS=0 @@ -216,7 +246,7 @@ test-suite preprocessor_isempty_c_nvm ] ; -test-suite preprocessor_config +alias preprocessor_config : [ run config_info.cpp ] ;