]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/type_traits/test/Jamfile.v2
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / type_traits / test / Jamfile.v2
CommitLineData
7c673cae
FG
1# copyright John Maddock 2004
2# Use, modification and distribution are subject to the
3# Boost Software License, Version 1.0. (See accompanying file
4# LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6# bring in the rules for testing
7import testing ;
11fdf7f2
TL
8import os ;
9
10if [ os.environ CI ]
11{
12CI_DEFINES = <define>CI_SUPPRESS_KNOWN_ISSUES=1 ;
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
18# regular
19
20project : 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
7c673cae
FG
28 <toolset>gcc:<warnings-as-errors>on
29 <toolset>intel:<warnings-as-errors>on
30 <toolset>sun:<warnings-as-errors>on
31 <toolset>msvc:<warnings-as-errors>on
32 <include>libs/tt2/light/include
11fdf7f2 33 $(CI_DEFINES)
7c673cae
FG
34;
35
36rule all-tests {
37 local result ;
38 for local source in [ glob *_test*.cpp ]
39 {
40 result += [ run $(source) ] ;
41 }
11fdf7f2
TL
42 for local source in [ glob compile_fail/*.cpp ]
43 {
44 result += [ compile-fail $(source) ] ;
45 }
7c673cae
FG
46 #
47 # These traits have both intrinsic support, and a std conforming version, test a version with intrinsics disabled for better code coverage:
48 #
49 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
50 {
51 result += [ run $(source).cpp : : : <define>BOOST_TT_DISABLE_INTRINSICS : $(source)_no_intrinsics ] ;
52 }
53 return $(result) ;
54}
55
56test-suite type_traits : [ all-tests ] ;
57
58