]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/system/test/Jamfile.v2
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / system / test / Jamfile.v2
CommitLineData
7c673cae
FG
1# Boost System Library test Jamfile
2
3# Copyright Beman Dawes 2003, 2006
1e59de90 4# Copyright 2017-2021 Peter Dimov
7c673cae
FG
5
6# Distributed under the Boost Software License, Version 1.0.
7# See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt
8
9# See library home page at http://www.boost.org/libs/system
10
b32b8144 11import testing ;
92f5a8d4 12
1e59de90
TL
13project
14 : default-build
15
16 <warnings>extra
17
18 : requirements
19
20 <toolset>msvc:<warnings-as-errors>on
21 <toolset>gcc:<warnings-as-errors>on
22 <toolset>clang:<warnings-as-errors>on
23
24 <toolset>gcc-4.4:<cxxflags>-Wno-sign-compare
25 ;
26
92f5a8d4 27rule system-run ( sources + )
11fdf7f2 28{
92f5a8d4
TL
29 local result ;
30
31 result += [ run $(sources) ] ;
32 result += [ run $(sources) : : : <library>/boost/system//boost_system <link>static : $(sources[1]:B)_static ] ;
33 result += [ run $(sources) : : : <library>/boost/system//boost_system <link>shared : $(sources[1]:B)_shared ] ;
34 result += [ run $(sources) : : : <define>BOOST_NO_ANSI_APIS : $(sources[1]:B)_no_ansi ] ;
35 result += [ run $(sources) : : : <define>BOOST_SYSTEM_USE_UTF8 : $(sources[1]:B)_utf8 ] ;
36
37 return $(result) ;
11fdf7f2 38}
11fdf7f2 39
92f5a8d4
TL
40system-run error_code_test.cpp ;
41system-run error_code_user_test.cpp ;
42system-run system_error_test.cpp ;
11fdf7f2 43
92f5a8d4 44lib throw_test : throw_test.cpp : <link>shared:<define>THROW_DYN_LINK=1 ;
11fdf7f2 45
92f5a8d4
TL
46run dynamic_link_test.cpp throw_test : : : <link>shared : throw_test_shared ;
47
48system-run initialization_test.cpp ;
49system-run header_only_test.cpp ;
50
51run config_test.cpp : : : <test-info>always_show_run_output ;
11fdf7f2 52
92f5a8d4
TL
53system-run std_interop_test.cpp ;
54system-run std_mismatch_test.cpp ;
55
56lib single_instance_lib1 : single_instance_1.cpp : <link>shared:<define>SINGLE_INSTANCE_DYN_LINK ;
57lib single_instance_lib2 : single_instance_2.cpp : <link>shared:<define>SINGLE_INSTANCE_DYN_LINK ;
58
59system-run single_instance_test.cpp single_instance_1.cpp single_instance_2.cpp ;
60run single_instance_test.cpp single_instance_lib1 single_instance_lib2 : : : <link>static : single_instance_lib_static ;
61run single_instance_test.cpp single_instance_lib1 single_instance_lib2 : : : <link>shared : single_instance_lib_shared ;
62
63system-run before_main_test.cpp ;
64run-fail throws_assign_fail.cpp ;
65system-run constexpr_test.cpp ;
66system-run win32_hresult_test.cpp ;
67
68system-run error_category_test.cpp ;
69system-run generic_category_test.cpp ;
70system-run system_category_test.cpp ;
71system-run after_main_test.cpp ;
72system-run failed_test.cpp ;
73system-run failed_constexpr_test.cpp ;
b32b8144
FG
74
75# Quick (CI) test
76run quick.cpp ;
92f5a8d4 77
1e59de90
TL
78run warnings_test.cpp
79 : : : <warnings>pedantic
20effc67
TL
80 <toolset>msvc:<warnings-as-errors>on
81 <toolset>gcc:<warnings-as-errors>on
82 <toolset>clang:<warnings-as-errors>on ;
92f5a8d4
TL
83
84lib std_single_instance_lib1 : std_single_instance_1.cpp : <link>shared:<define>STD_SINGLE_INSTANCE_DYN_LINK ;
85lib std_single_instance_lib2 : std_single_instance_2.cpp : <link>shared:<define>STD_SINGLE_INSTANCE_DYN_LINK ;
86
87system-run std_single_instance_test.cpp std_single_instance_1.cpp std_single_instance_2.cpp ;
88run std_single_instance_test.cpp std_single_instance_lib1 std_single_instance_lib2 : : : <link>static : std_single_instance_lib_static ;
89run std_single_instance_test.cpp std_single_instance_lib1 std_single_instance_lib2 : : : <link>shared <define>STD_SINGLE_INSTANCE_SHARED : std_single_instance_lib_shared ;
20effc67
TL
90
91run is_error_code_enum_test.cpp ;
92run is_error_condition_enum_test.cpp ;
93run errc_test.cpp ;
94run errc_test2.cpp ;
95run error_category_test2.cpp ;
96run error_condition_test.cpp ;
97run error_condition_test2.cpp ;
98run generic_category_test2.cpp ;
99run generic_category_test3.cpp ;
100run system_category_test2.cpp ;
101run system_category_test3.cpp ;
102
103run windows_error_test.cpp ;
104run cygwin_error_test.cpp ;
105run linux_error_test.cpp ;
1e59de90
TL
106
107link errc_test3.cpp ;
108
109run snprintf_test.cpp ;
110
111run std_interop_test2.cpp ;
112run std_interop_test3.cpp ;
113run std_interop_test4.cpp ;
114run std_interop_test5.cpp
115 : : :
116 # crash on xenial, but the real g++ 4.8 on both centos 7 and trusty works
117 <toolset>gcc-4.8:<build>no
118 <toolset>gcc-4.9:<build>no
119 ;
120
121run std_interop_test6.cpp ;
122run std_interop_test7.cpp ;
123run std_interop_test8.cpp ;
124run std_interop_test9.cpp ;
125
126run ec_location_test.cpp ;
127
128run error_condition_test3.cpp ;
129run error_code_test2.cpp ;
130run system_error_test2.cpp ;
131run std_interop_test10.cpp ;
132
133run ec_location_test2.cpp ;
134run ec_what_test.cpp ;
135run system_error_test3.cpp ;
136
137run std_interop_test11.cpp ;
138
139run ec_wstream_test.cpp ;
140
141run std_interop_test12.cpp ;
142
143run errc_test4.cpp ;
144
145# result
146
147import ../../config/checks/config : requires ;
148
149CPP11 = [ requires cxx11_variadic_templates cxx11_template_aliases cxx11_decltype cxx11_constexpr cxx11_noexcept ] <toolset>gcc-4.7:<build>no ;
150
151run result_default_construct.cpp : : : $(CPP11) ;
152run result_value_construct.cpp : : : $(CPP11) ;
153run result_error_construct.cpp : : : $(CPP11) ;
154run result_copy_construct.cpp : : : $(CPP11) ;
155run result_move_construct.cpp : : : $(CPP11) ;
156run result_copy_assign.cpp : : : $(CPP11) ;
157run result_move_assign.cpp : : : $(CPP11) ;
158run result_value_access.cpp : : : $(CPP11) ;
159run result_error_access.cpp : : : $(CPP11) ;
160run result_swap.cpp : : : $(CPP11) <toolset>gcc-10:<cxxflags>"-Wno-maybe-uninitialized" ;
161run result_eq.cpp : : : $(CPP11) ;
162run result_range_for.cpp : : : $(CPP11) ;
163run result_value_construct2.cpp : : : $(CPP11) ;
164run result_error_construct2.cpp : : : $(CPP11) ;
165run result_errc_construct.cpp : : : $(CPP11) ;