]>
Commit | Line | Data |
---|---|---|
7c673cae | 1 | # copyright John Maddock 2004 |
f51cf556 TL |
2 | # Use, modification and distribution are subject to the |
3 | # Boost Software License, Version 1.0. (See accompanying file | |
7c673cae FG |
4 | # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
5 | ||
6 | # bring in the rules for testing | |
7 | import testing ; | |
11fdf7f2 TL |
8 | import os ; |
9 | ||
f51cf556 | 10 | if [ os.environ CI ] |
11fdf7f2 | 11 | { |
f51cf556 | 12 | CI_DEFINES = <define>CI_SUPPRESS_KNOWN_ISSUES=1 ; |
11fdf7f2 TL |
13 | } |
14 | ||
7c673cae FG |
15 | |
16 | # type_traits in V1 seem to have two modes: standalone, triggered | |
17 | # by a command line option, and a regular. For now, just imitate | |
f51cf556 | 18 | # regular |
7c673cae FG |
19 | |
20 | project : requirements | |
21 | # default to all warnings on: | |
22 | <warnings>all | |
23 | # set warnings as errors for those compilers we know we get warning free: | |
24 | <toolset>gcc:<cxxflags>-Wextra | |
25 | <toolset>gcc:<cxxflags>-Wno-uninitialized | |
11fdf7f2 TL |
26 | <toolset>gcc:<cxxflags>-Wno-int-in-bool-context |
27 | <toolset>gcc:<cxxflags>-Wno-bool-operation | |
f51cf556 | 28 | <toolset>gcc:<cxxflags>-Wundef |
7c673cae FG |
29 | <toolset>gcc:<warnings-as-errors>on |
30 | <toolset>intel:<warnings-as-errors>on | |
31 | <toolset>sun:<warnings-as-errors>on | |
32 | <toolset>msvc:<warnings-as-errors>on | |
33 | <include>libs/tt2/light/include | |
11fdf7f2 | 34 | $(CI_DEFINES) |
f51cf556 | 35 | ; |
7c673cae FG |
36 | |
37 | rule all-tests { | |
38 | local result ; | |
39 | for local source in [ glob *_test*.cpp ] | |
40 | { | |
41 | result += [ run $(source) ] ; | |
42 | } | |
11fdf7f2 TL |
43 | for local source in [ glob compile_fail/*.cpp ] |
44 | { | |
45 | result += [ compile-fail $(source) ] ; | |
46 | } | |
7c673cae FG |
47 | # |
48 | # These traits have both intrinsic support, and a std conforming version, test a version with intrinsics disabled for better code coverage: | |
49 | # | |
50 | for local source in has_nothrow_assign_test has_nothrow_constr_test has_nothrow_copy_test is_nothrow_move_assignable_test is_nothrow_move_constructible_test | |
51 | { | |
52 | result += [ run $(source).cpp : : : <define>BOOST_TT_DISABLE_INTRINSICS : $(source)_no_intrinsics ] ; | |
53 | } | |
f51cf556 | 54 | return $(result) ; |
7c673cae | 55 | } |
f51cf556 | 56 | |
7c673cae FG |
57 | test-suite type_traits : [ all-tests ] ; |
58 | ||
59 |