2008-04-13 23:21:57 +00:00
|
|
|
#~ Copyright Rene Rivera 2008
|
|
|
|
#~ Distributed under the Boost Software License, Version 1.0.
|
|
|
|
#~ (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
|
|
|
import testing ;
|
|
|
|
|
2011-06-26 13:07:20 +00:00
|
|
|
project preprocessor_tests : requirements <warnings>on
|
|
|
|
<toolset>gcc-4.3.0:<warnings>all
|
|
|
|
<toolset>gcc-4.3.0:<cxxflags>-Wno-variadic-macros
|
|
|
|
<toolset>gcc-4.4.0:<warnings>all
|
|
|
|
<toolset>gcc-4.4.0:<cxxflags>-Wno-variadic-macros
|
|
|
|
<toolset>gcc-4.5.0:<warnings>all
|
|
|
|
<toolset>gcc-4.5.0:<cxxflags>-Wno-variadic-macros
|
|
|
|
<toolset>gcc-4.5.0:<linkflags>"-Wl,--enable-auto-import"
|
|
|
|
<toolset>gcc-4.5.2:<warnings>all
|
|
|
|
<toolset>gcc-4.5.2:<cxxflags>-Wno-variadic-macros
|
|
|
|
<toolset>msvc:<warnings>all
|
|
|
|
;
|
|
|
|
|
2008-04-13 23:21:57 +00:00
|
|
|
test-suite preprocessor
|
2011-06-26 13:07:20 +00:00
|
|
|
:
|
2014-06-16 23:58:35 -04:00
|
|
|
[ compile arithmetic.cpp ]
|
|
|
|
[ compile array.cpp ]
|
|
|
|
[ compile comparison.cpp ]
|
|
|
|
[ compile control.cpp ]
|
|
|
|
[ compile debug.cpp ]
|
|
|
|
[ compile facilities.cpp ]
|
2014-04-28 19:24:42 -04:00
|
|
|
[ compile isempty.cpp ]
|
2014-06-16 23:58:35 -04:00
|
|
|
[ compile iteration.cpp ]
|
|
|
|
[ compile list.cpp ]
|
|
|
|
[ compile logical.cpp ]
|
2014-04-28 19:24:42 -04:00
|
|
|
[ compile punctuation.cpp ]
|
2014-06-16 23:58:35 -04:00
|
|
|
[ compile repetition.cpp ]
|
|
|
|
[ compile selection.cpp ]
|
|
|
|
[ compile seq.cpp ]
|
|
|
|
[ compile slot.cpp ]
|
|
|
|
[ compile tuple.cpp ]
|
|
|
|
[ compile variadic.cpp ]
|
2011-06-26 13:07:20 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
test-suite preprocessor_nvm
|
|
|
|
:
|
|
|
|
[ compile arithmetic.cpp : <define>BOOST_PP_VARIADICS=0 : arithmetic_nvm ]
|
|
|
|
[ compile array.cpp : <define>BOOST_PP_VARIADICS=0 : array_nvm ]
|
|
|
|
[ compile comparison.cpp : <define>BOOST_PP_VARIADICS=0 : comparison_nvm ]
|
|
|
|
[ compile control.cpp : <define>BOOST_PP_VARIADICS=0 : control_nvm ]
|
|
|
|
[ compile debug.cpp : <define>BOOST_PP_VARIADICS=0 : debug_nvm ]
|
|
|
|
[ compile facilities.cpp : <define>BOOST_PP_VARIADICS=0 : facilities_nvm ]
|
2014-04-28 19:24:42 -04:00
|
|
|
[ compile isempty.cpp : <define>BOOST_PP_VARIADICS=0 : isempty_nvm ]
|
2011-06-26 13:07:20 +00:00
|
|
|
[ compile iteration.cpp : <define>BOOST_PP_VARIADICS=0 : iteration_nvm ]
|
|
|
|
[ compile list.cpp : <define>BOOST_PP_VARIADICS=0 : list_nvm ]
|
|
|
|
[ compile logical.cpp : <define>BOOST_PP_VARIADICS=0 : logical_nvm ]
|
|
|
|
[ compile repetition.cpp : <define>BOOST_PP_VARIADICS=0 : repetition_nvm ]
|
|
|
|
[ compile selection.cpp : <define>BOOST_PP_VARIADICS=0 : selection_nvm ]
|
|
|
|
[ compile seq.cpp : <define>BOOST_PP_VARIADICS=0 : seq_nvm ]
|
|
|
|
[ compile slot.cpp : <define>BOOST_PP_VARIADICS=0 : slot_nvm ]
|
|
|
|
[ compile tuple.cpp : <define>BOOST_PP_VARIADICS=0 : tuple_nvm ]
|
|
|
|
;
|
|
|
|
|
|
|
|
test-suite preprocessor_c
|
|
|
|
:
|
|
|
|
[ compile arithmetic.c
|
|
|
|
: <toolset>gcc:<cflags>-std=c99
|
|
|
|
: arithmetic_c
|
|
|
|
]
|
|
|
|
[ compile array.c
|
|
|
|
: <toolset>gcc:<cflags>-std=c99
|
|
|
|
: array_c
|
|
|
|
]
|
|
|
|
[ compile comparison.c
|
|
|
|
: <toolset>gcc:<cflags>-std=c99
|
|
|
|
: comparison_c
|
|
|
|
]
|
|
|
|
[ compile control.c
|
|
|
|
: <toolset>gcc:<cflags>-std=c99
|
|
|
|
: control_c
|
|
|
|
]
|
|
|
|
[ compile debug.c
|
|
|
|
: <toolset>gcc:<cflags>-std=c99
|
|
|
|
: debug_c
|
|
|
|
]
|
|
|
|
[ compile facilities.c
|
|
|
|
: <toolset>gcc:<cflags>-std=c99
|
|
|
|
: facilities_c
|
|
|
|
]
|
2014-04-28 19:24:42 -04:00
|
|
|
[ compile isempty.c
|
|
|
|
: <toolset>gcc:<cflags>-std=c99
|
|
|
|
: isempty_c
|
|
|
|
]
|
2011-06-26 13:07:20 +00:00
|
|
|
[ compile list.c
|
|
|
|
: <toolset>gcc:<cflags>-std=c99
|
|
|
|
: list_c
|
|
|
|
]
|
|
|
|
[ compile logical.c
|
|
|
|
: <toolset>gcc:<cflags>-std=c99
|
|
|
|
: logical_c
|
|
|
|
]
|
2014-04-28 19:24:42 -04:00
|
|
|
[ compile punctuation.c
|
|
|
|
: <toolset>gcc:<cflags>-std=c99
|
|
|
|
: punctuation_c
|
|
|
|
]
|
2011-06-26 13:07:20 +00:00
|
|
|
[ compile selection.c
|
|
|
|
: <toolset>gcc:<cflags>-std=c99
|
|
|
|
: selection_c
|
|
|
|
]
|
|
|
|
[ compile seq.c
|
|
|
|
: <toolset>gcc:<cflags>-std=c99
|
|
|
|
: seq_c
|
|
|
|
]
|
|
|
|
[ compile slot.c
|
|
|
|
: <toolset>gcc:<cflags>-std=c99
|
|
|
|
: slot_c
|
|
|
|
]
|
|
|
|
[ compile tuple.c
|
|
|
|
: <toolset>gcc:<cflags>-std=c99
|
|
|
|
: tuple_c
|
|
|
|
]
|
|
|
|
[ compile variadic.c
|
|
|
|
: <toolset>gcc:<cflags>-std=c99
|
|
|
|
: variadic_c
|
|
|
|
]
|
|
|
|
;
|
|
|
|
|
|
|
|
test-suite preprocessor_c_nvm
|
|
|
|
:
|
|
|
|
[ compile arithmetic.c
|
|
|
|
: <define>BOOST_PP_VARIADICS=0
|
|
|
|
<toolset>gcc:<cflags>-std=c99
|
|
|
|
: arithmetic_c_nvm
|
|
|
|
]
|
|
|
|
[ compile array.c
|
|
|
|
: <define>BOOST_PP_VARIADICS=0
|
|
|
|
<toolset>gcc:<cflags>-std=c99
|
|
|
|
: array_c_nvm
|
|
|
|
]
|
|
|
|
[ compile comparison.c
|
|
|
|
: <define>BOOST_PP_VARIADICS=0
|
|
|
|
<toolset>gcc:<cflags>-std=c99
|
|
|
|
: comparison_c_nvm
|
|
|
|
]
|
|
|
|
[ compile control.c
|
|
|
|
: <define>BOOST_PP_VARIADICS=0
|
|
|
|
<toolset>gcc:<cflags>-std=c99
|
|
|
|
: control_c_nvm
|
|
|
|
]
|
|
|
|
[ compile debug.c
|
|
|
|
: <define>BOOST_PP_VARIADICS=0
|
|
|
|
<toolset>gcc:<cflags>-std=c99
|
|
|
|
: debug_c_nvm
|
|
|
|
]
|
|
|
|
[ compile facilities.c
|
|
|
|
: <define>BOOST_PP_VARIADICS=0
|
|
|
|
<toolset>gcc:<cflags>-std=c99
|
|
|
|
: facilities_c_nvm
|
|
|
|
]
|
2014-04-28 19:24:42 -04:00
|
|
|
[ compile isempty.c
|
|
|
|
: <define>BOOST_PP_VARIADICS=0
|
|
|
|
<toolset>gcc:<cflags>-std=c99
|
|
|
|
: isempty_c_nvm
|
|
|
|
]
|
2011-06-26 13:07:20 +00:00
|
|
|
[ compile list.c
|
|
|
|
: <define>BOOST_PP_VARIADICS=0
|
|
|
|
<toolset>gcc:<cflags>-std=c99
|
|
|
|
: list_c_nvm
|
|
|
|
]
|
|
|
|
[ compile logical.c
|
|
|
|
: <define>BOOST_PP_VARIADICS=0
|
|
|
|
<toolset>gcc:<cflags>-std=c99
|
|
|
|
: logical_c_nvm
|
|
|
|
]
|
|
|
|
[ compile selection.c
|
|
|
|
: <define>BOOST_PP_VARIADICS=0
|
|
|
|
<toolset>gcc:<cflags>-std=c99
|
|
|
|
: selection_c_nvm
|
|
|
|
]
|
|
|
|
[ compile seq.c
|
|
|
|
: <define>BOOST_PP_VARIADICS=0
|
|
|
|
<toolset>gcc:<cflags>-std=c99
|
|
|
|
: seq_c_nvm
|
|
|
|
]
|
|
|
|
[ compile slot.c
|
|
|
|
: <define>BOOST_PP_VARIADICS=0
|
|
|
|
<toolset>gcc:<cflags>-std=c99
|
|
|
|
: slot_c_nvm
|
|
|
|
]
|
|
|
|
[ compile tuple.c
|
|
|
|
: <define>BOOST_PP_VARIADICS=0
|
|
|
|
<toolset>gcc:<cflags>-std=c99
|
|
|
|
: tuple_c_nvm
|
|
|
|
]
|
|
|
|
;
|