]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/Jamfile.v2
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / config / test / Jamfile.v2
1 #
2 # Copyright John Maddock 2008.
3 # Use, modification and distribution are subject to the
4 # Boost Software License, Version 1.0. (See accompanying file
5 # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #
7 # If you need to alter build preferences then set them in
8 # the template defined in options_v2.jam.
9 #
10
11 import testing ;
12
13 project
14 : requirements
15 <toolset>gcc:<cxxflags>-Wno-deprecated-declarations
16 ;
17
18
19 import modules ;
20 import ../checks/config : requires ;
21
22 local is_unix = [ modules.peek : UNIX ] ;
23
24 lib atomic ;
25 lib pthread ;
26 lib rt ;
27
28 exe has_atomic_lib : config_info.cpp atomic ;
29 explicit has_atomic_lib ;
30 exe has_pthread_lib : config_info.cpp pthread ;
31 explicit has_pthread_lib ;
32 exe has_rt_lib : config_info.cpp rt ;
33 explicit has_rt_lib ;
34
35 test-suite config
36 :
37 [ compile config_test_c.c ]
38 [ run config_test.cpp
39 : #args
40 : #input-files
41 : #requirements
42 <threading>multi
43 [ check-target-builds has_atomic_lib : <source>atomic ]
44 [ check-target-builds has_pthread_lib : <source>pthread ]
45 [ check-target-builds has_rt_lib : <source>rt ]
46 : config_test_threaded
47 ]
48 [ run config_test.cpp
49 : #args
50 : #input-files
51 : #requirements
52 <threading>single <toolset>msvc:<runtime-link>static <toolset>msvc:<link>static
53 [ check-target-builds has_atomic_lib : <source>atomic ]
54 [ check-target-builds has_pthread_lib : <source>pthread ]
55 [ check-target-builds has_rt_lib : <source>rt ]
56 ]
57 [ run config_test.cpp
58 : #args
59 : #input-files
60 : #requirements
61 <rtti>off
62 [ check-target-builds has_atomic_lib : <source>atomic ]
63 [ check-target-builds has_pthread_lib : <source>pthread ]
64 [ check-target-builds has_rt_lib : <source>rt ]
65 : config_test_no_rtti
66 ]
67 [ run config_test.cpp
68 : #args
69 : #input-files
70 : #requirements
71 <exception-handling>off
72 [ check-target-builds has_atomic_lib : <source>atomic ]
73 [ check-target-builds has_pthread_lib : <source>pthread ]
74 [ check-target-builds has_rt_lib : <source>rt ]
75 : config_test_no_except
76 ]
77 [ run config_info.cpp : : : <test-info>always_show_run_output <threading>single <toolset>msvc:<runtime-link>static <toolset>msvc:<link>static ]
78 [ run config_info.cpp : : : <test-info>always_show_run_output <threading>multi : config_info_threaded ]
79 [ run config_info.cpp : : : <test-info>always_show_run_output <rtti>off : config_info_no_rtti ]
80 [ run config_info.cpp : : : <test-info>always_show_run_output <exception-handling>off : config_info_no_except ]
81 [ run math_info.cpp : : : <test-info>always_show_run_output <toolset>borland:<runtime-link>static <toolset>borland:<link>static ]
82 [ run abi/abi_test.cpp abi/main.cpp ]
83 [ run limits_test.cpp ]
84 [ run link/main.cpp link//link_test
85 : #args
86 : #input-files
87 : #requirements
88 <runtime-link>shared
89 <define>BOOST_DYN_LINK=1
90 <define>BOOST_CONFIG_NO_LIB=1
91 :
92 config_link_test
93 ]
94 [ compile-fail threads/test_thread_fail1.cpp ]
95 [ compile-fail threads/test_thread_fail2.cpp ]
96 [ compile boost_fallthrough_test.cpp : [ check-target-builds has_clang_implicit_fallthrough "Clang implicit fallthrough" : <toolset>clang:<cxxflags>"-std=c++11 -Wimplicit-fallthrough" <warnings-as-errors>on <warnings>all ] ]
97 [ compile helper_macro_test.cpp ]
98 [ run cstdint_test.cpp : : : <warnings>all <toolset>gcc:<cxxflags>"-Wno-long-long -Wextra" <toolset>darwin:<cxxflags>-Wno-long-long ]
99 [ run cstdint_test2.cpp : : : <warnings>all <toolset>gcc:<cxxflags>"-Wno-long-long -Wextra" <toolset>darwin:<cxxflags>-Wno-long-long ]
100 [ compile cstdint_include_test.cpp : <warnings>all <toolset>gcc:<cxxflags>-Wextra ]
101 [ run config_build_check.cpp : : : [ requires int128 cxx11_constexpr cxx11_user_defined_literals ] ]
102 ;
103
104 obj has_clang_implicit_fallthrough : cmd_line_check.cpp :
105 <toolset>clang:<cxxflags>"-std=c++11 -Wimplicit-fallthrough" <warnings-as-errors>on <warnings>all ;
106
107 explicit has_clang_implicit_fallthrough ;
108
109 exe config_info_travis : config_info.cpp ;
110 install config_info_travis_install : config_info_travis : <location>. ;
111 explicit config_info_travis_install ;
112 explicit config_info_travis ;