]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/smart_ptr/test/Jamfile
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / smart_ptr / test / Jamfile
1 # Boost.SmartPtr Library test Jamfile
2 #
3 # Copyright (c) 2003-2018 Peter Dimov
4 # Copyright (c) 2003 Dave Abrahams
5 #
6 # Distributed under the Boost Software License, Version 1.0. (See
7 # accompanying file LICENSE_1_0.txt or copy at
8 # http://www.boost.org/LICENSE_1_0.txt)
9
10 import testing ;
11
12 project
13 : requirements
14 <toolset>gcc:<cxxflags>-Wno-non-virtual-dtor
15 <toolset>gcc:<cxxflags>-Wno-deprecated-declarations
16 #<toolset>gcc:<cxxflags>-Wno-delete-non-virtual-dtor (not in 4.4/4.6)
17 ;
18
19 # quick test (for CI)
20 run quick.cpp ;
21
22 # full test suite
23 run smart_ptr_test.cpp ;
24 run shared_ptr_basic_test.cpp ;
25 run shared_ptr_test.cpp ;
26 run weak_ptr_test.cpp ;
27 run weak_ptr_move_test.cpp ;
28 run shared_from_this_test.cpp ;
29 run get_deleter_test.cpp ;
30 run intrusive_ptr_test.cpp ;
31 run intrusive_ptr_move_test.cpp ;
32 run intrusive_ref_counter_test.cpp ;
33 run atomic_count_test.cpp ;
34 run lw_mutex_test.cpp ;
35 run lw_mutex_test.cpp : : : <define>BOOST_USE_WINDOWS_H : lw_mutex_test.win_h ;
36 compile-fail shared_ptr_assign_fail.cpp ;
37 compile-fail shared_ptr_delete_fail.cpp ;
38 compile-fail shared_ptr_compare_fail.cpp ;
39 run shared_ptr_alloc2_test.cpp ;
40 run pointer_cast_test.cpp ;
41 run cpp11_pointer_cast_test.cpp ;
42 compile pointer_to_other_test.cpp ;
43 run auto_ptr_rv_test.cpp ;
44 run shared_ptr_alias_test.cpp ;
45 run shared_ptr_rv_test.cpp ;
46 run shared_ptr_rv_pointer_cast_test.cpp ;
47 run shared_ptr_move_test.cpp ;
48 run shared_ptr_alias_move_test.cpp ;
49 run shared_ptr_reinterpret_pointer_cast_test.cpp ;
50 compile-fail shared_ptr_pv_fail.cpp ;
51 run sp_unary_addr_test.cpp ;
52 compile-fail scoped_ptr_eq_fail.cpp ;
53 compile-fail scoped_array_eq_fail.cpp ;
54 run esft_regtest.cpp ;
55 run yield_k_test.cpp ;
56 run yield_k_test.cpp : : : <threading>multi : yield_k_test.mt ;
57 run spinlock_test.cpp ;
58 run spinlock_try_test.cpp ;
59 run spinlock_try_test.cpp : : : <threading>multi : spinlock_try_test.mt ;
60 run spinlock_pool_test.cpp : : :
61 # msvc-8.0, 9.0 optimizer codegen bug for `x % 41`
62 <toolset>msvc-8.0,<variant>release:<build>no
63 <toolset>msvc-9.0,<variant>release:<build>no ;
64
65 run make_shared_test.cpp ;
66 run make_shared_move_emulation_test.cpp ;
67 run make_shared_perfect_forwarding_test.cpp ;
68 run shared_ptr_convertible_test.cpp ;
69 run wp_convertible_test.cpp ;
70 run ip_convertible_test.cpp ;
71 run allocate_shared_test.cpp ;
72 run sp_atomic_test.cpp ;
73 run esft_void_test.cpp ;
74 run esft_second_ptr_test.cpp ;
75 run make_shared_esft_test.cpp ;
76 run allocate_shared_esft_test.cpp ;
77 run sp_recursive_assign_test.cpp ;
78 run sp_recursive_assign2_test.cpp ;
79 run sp_recursive_assign_rv_test.cpp ;
80 run sp_recursive_assign2_rv_test.cpp ;
81 compile-fail auto_ptr_lv_fail.cpp : <toolset>gcc-4.4.7:<build>no ;
82 run atomic_count_test2.cpp ;
83 run sp_typeinfo_test.cpp ;
84 compile make_shared_fp_test.cpp ;
85 run sp_hash_test.cpp ;
86 run get_deleter_array_test.cpp ;
87 run ip_hash_test.cpp ;
88 run owner_less_test.cpp ;
89 run sp_unique_ptr_test.cpp ;
90 run sp_array_test.cpp ;
91 compile sp_array_cv_test.cpp ;
92 run sp_convertible_test.cpp ;
93 run sp_array_n_test.cpp ;
94 run sp_array_cast_test.cpp ;
95 run sp_zero_compare_test.cpp ;
96 run sp_nullptr_test.cpp ;
97 run sa_nullptr_test.cpp ;
98 run shared_ptr_alloc3_test.cpp ;
99 run shared_ptr_alloc11_test.cpp ;
100 run shared_ptr_alloc_construct11_test.cpp ;
101 run allocate_shared_alloc11_test.cpp ;
102 run allocate_shared_construct11_test.cpp ;
103 run sp_interlocked_test.cpp ;
104
105 compile-fail array_fail_spa_sp_c.cpp ;
106 compile-fail array_fail_sp_spa_c.cpp ;
107 compile-fail array_fail_spa_spa_c.cpp ;
108 compile-fail array_fail_spa_wp_c.cpp ;
109 compile-fail array_fail_sp_wpa_c.cpp ;
110 compile-fail array_fail_spa_wpa_c.cpp ;
111 compile-fail array_fail_wpa_wp_c.cpp ;
112 compile-fail array_fail_wp_wpa_c.cpp ;
113 compile-fail array_fail_wpa_wpa_c.cpp ;
114 compile-fail array_fail_ap_spa_c.cpp ;
115 compile-fail array_fail_upa_sp_c.cpp ;
116 compile-fail array_fail_up_spa_c.cpp ;
117
118 compile-fail array_fail_spa_sp_mc.cpp ;
119 compile-fail array_fail_sp_spa_mc.cpp ;
120 compile-fail array_fail_spa_spa_mc.cpp ;
121 compile-fail array_fail_spa_wp_mc.cpp ;
122 compile-fail array_fail_sp_wpa_mc.cpp ;
123 compile-fail array_fail_spa_wpa_mc.cpp ;
124 compile-fail array_fail_wpa_wp_mc.cpp ;
125 compile-fail array_fail_wp_wpa_mc.cpp ;
126 compile-fail array_fail_wpa_wpa_mc.cpp ;
127 compile-fail array_fail_ap_spa_mc.cpp ;
128 compile-fail array_fail_upa_sp_mc.cpp ;
129 compile-fail array_fail_up_spa_mc.cpp ;
130
131 compile-fail array_fail_spa_sp_a.cpp ;
132 compile-fail array_fail_sp_spa_a.cpp ;
133 compile-fail array_fail_spa_spa_a.cpp ;
134 compile-fail array_fail_spa_wp_a.cpp ;
135 compile-fail array_fail_sp_wpa_a.cpp ;
136 compile-fail array_fail_spa_wpa_a.cpp ;
137 compile-fail array_fail_wpa_wp_a.cpp ;
138 compile-fail array_fail_wp_wpa_a.cpp ;
139 compile-fail array_fail_wpa_wpa_a.cpp ;
140 compile-fail array_fail_ap_spa_a.cpp ;
141 compile-fail array_fail_upa_sp_a.cpp ;
142 compile-fail array_fail_up_spa_a.cpp ;
143
144 compile-fail array_fail_spa_sp_ma.cpp ;
145 compile-fail array_fail_sp_spa_ma.cpp ;
146 compile-fail array_fail_spa_spa_ma.cpp ;
147 compile-fail array_fail_spa_wp_ma.cpp ;
148 compile-fail array_fail_sp_wpa_ma.cpp ;
149 compile-fail array_fail_spa_wpa_ma.cpp ;
150 compile-fail array_fail_wpa_wp_ma.cpp ;
151 compile-fail array_fail_wp_wpa_ma.cpp ;
152 compile-fail array_fail_wpa_wpa_ma.cpp ;
153 compile-fail array_fail_ap_spa_ma.cpp ;
154 compile-fail array_fail_upa_sp_ma.cpp ;
155 compile-fail array_fail_up_spa_ma.cpp ;
156
157 compile-fail array_fail_dereference.cpp ;
158 compile-fail array_fail_member_access.cpp ;
159 compile-fail array_fail_array_access.cpp ;
160
161 run make_shared_array_test.cpp : : : <toolset>msvc-8.0:<build>no ;
162 run make_shared_arrays_test.cpp ; # <cxxflags>-fno-deduce-init-list no longer needed for gcc-4.6
163 run make_shared_array_throws_test.cpp : : : <toolset>msvc-8.0:<build>no ;
164 run make_shared_array_esft_test.cpp : : : <toolset>msvc-8.0:<build>no ;
165 run make_shared_array_noinit_test.cpp : : : <toolset>msvc-8.0:<build>no ;
166 run make_shared_array_value_test.cpp : : : <toolset>msvc-8.0:<build>no ;
167 run allocate_shared_array_test.cpp ;
168 run allocate_shared_arrays_test.cpp ; # <cxxflags>-fno-deduce-init-list no longer needed for gcc-4.6
169 run allocate_shared_array_throws_test.cpp : : : <toolset>msvc-8.0:<build>no ;
170 run allocate_shared_array_esft_test.cpp : : : <toolset>msvc-8.0:<build>no ;
171 run allocate_shared_array_noinit_test.cpp : : : <toolset>msvc-8.0:<build>no ;
172 run allocate_shared_array_value_test.cpp : : : <toolset>msvc-8.0:<build>no ;
173 run allocate_shared_array_construct_test.cpp ;
174
175 run make_unique_test.cpp ;
176 run make_unique_args_test.cpp ;
177 run make_unique_value_test.cpp : : : <toolset>gcc-4.6:<cxxflags>-fno-deduce-init-list ;
178 run make_unique_noinit_test.cpp ;
179 run make_unique_throws_test.cpp ;
180 run make_unique_array_test.cpp ;
181 run make_unique_array_noinit_test.cpp ;
182 run make_unique_array_throws_test.cpp ;
183
184 run shared_from_raw_test.cpp ;
185 run shared_from_raw_test2.cpp ;
186 run shared_from_raw_test3.cpp ;
187 run shared_from_raw_test4.cpp ;
188 run shared_from_raw_test5.cpp ;
189 run shared_from_raw_test6.cpp ;
190
191 run weak_from_raw_test.cpp ;
192 run weak_from_raw_test2.cpp ;
193 run weak_from_raw_test3.cpp ;
194 run weak_from_raw_test4.cpp ;
195 run weak_from_raw_test5.cpp ;
196
197 compile sp_explicit_inst_test.cpp ;
198
199 run weak_from_this_test.cpp ;
200 run weak_from_this_test2.cpp ;
201
202 run sp_bml_unique_ptr_test.cpp ;
203
204 run sp_hash_test2.cpp ;
205 run sp_hash_test3.cpp ;
206
207 run pointer_cast_test2.cpp ;
208
209 compile-fail pointer_cast_st_fail.cpp ;
210 compile-fail pointer_cast_st_fail2.cpp ;
211 compile-fail pointer_cast_st_fail3.cpp ;
212
213 compile-fail pointer_cast_co_fail.cpp ;
214 compile-fail pointer_cast_co_fail2.cpp ;
215 compile-fail pointer_cast_co_fail3.cpp ;
216
217 compile-fail pointer_cast_dy_fail.cpp ;
218 compile-fail pointer_cast_dy_fail2.cpp ;
219 compile-fail pointer_cast_dy_fail3.cpp ;
220
221 run sp_nothrow_test.cpp ;
222
223 compile make_shared_msvc_test.cpp ;
224
225 compile lwm_win32_cs_test.cpp ;
226
227 run atomic_sp_test.cpp ;
228
229 run sp_constexpr_test.cpp ;
230 run sp_constexpr_test2.cpp ;
231
232 run atomic_sp_constexpr_test.cpp ;
233
234 run shared_ptr_fn_test.cpp ;
235
236 run get_deleter_test2.cpp ;
237 run get_deleter_test3.cpp ;
238 run get_deleter_array_test2.cpp ;
239 run get_deleter_array_test3.cpp : : : <toolset>msvc-8.0:<build>no ;
240
241 run sp_convertible_test2.cpp ;
242
243 run local_sp_test.cpp ;
244 run lsp_array_test.cpp ;
245 run lsp_array_n_test.cpp ;
246 run lsp_array_cv_test.cpp ;
247 run lsp_array_cast_test.cpp ;
248
249 run get_local_deleter_test.cpp ;
250 run get_local_deleter_test2.cpp ;
251 run get_local_deleter_test3.cpp ;
252 run get_local_deleter_array_test.cpp ;
253 run get_local_deleter_array_test2.cpp ;
254
255 run make_local_shared_test.cpp ;
256 run make_local_shared_esft_test.cpp ;
257 run allocate_local_shared_test.cpp ;
258 run allocate_local_shared_esft_test.cpp ;
259
260 run make_local_shared_array_test.cpp ;
261 run make_local_shared_arrays_test.cpp : : : <toolset>gcc-4.6.3_0x:<cxxflags>-fno-deduce-init-list ;
262 run make_local_shared_array_throws_test.cpp ;
263 run make_local_shared_array_esft_test.cpp ;
264 run make_local_shared_array_noinit_test.cpp ;
265 run make_local_shared_array_value_test.cpp ;
266 run allocate_local_shared_array_test.cpp ;
267 run allocate_local_shared_arrays_test.cpp : : : <toolset>gcc-4.6.3_0x:<cxxflags>-fno-deduce-init-list ;
268 run allocate_local_shared_array_throws_test.cpp ;
269 run allocate_local_shared_array_esft_test.cpp ;
270 run allocate_local_shared_array_noinit_test.cpp ;
271 run allocate_local_shared_array_value_test.cpp ;
272 run allocate_local_shared_array_construct_test.cpp ;
273
274 run local_sp_fn_test.cpp ;
275 run lsp_convertible_test.cpp ;
276 run lsp_convertible_test2.cpp ;
277
278 run make_shared_array_tmp_test.cpp : : : <toolset>msvc-8.0:<build>no ;
279
280 run lw_thread_test.cpp : : : <threading>multi ;
281
282 compile sp_windows_h_test.cpp ;
283 compile spinlock_windows_h_test.cpp ;
284 compile yield_k_windows_h_test.cpp ;
285
286 lib dll_test : dll_test_lib.cpp : <link>shared:<define>DLL_TEST_DYN_LINK=1 ;
287 explicit dll_test ;
288
289 run dll_test_main.cpp dll_test : : : <link>static : dll_test_static ;
290 run dll_test_main.cpp dll_test : : : <link>shared : dll_test_shared ;
291
292 run make_shared_const_test.cpp ;
293 run make_local_shared_const_test.cpp ;
294
295 lib abi_test_mt : abi_test_lib.cpp : <link>static ;
296 explicit abi_test_mt ;
297
298 obj abi_test_lib_nt : abi_test_lib.cpp : <define>BOOST_DISABLE_THREADS ;
299 explicit abi_test_lib_nt ;
300
301 lib abi_test_nt : abi_test_lib_nt : <link>static ;
302 explicit abi_test_nt ;
303
304 run abi_test_main.cpp abi_test_mt : : : <define>BOOST_DISABLE_THREADS : abi_test_nt_mt ;
305 run abi_test_main.cpp abi_test_nt : : : : abi_test_mt_nt ;
306
307 run abi_test_main.cpp abi_test_mt/<cxxstd>0x : : : <cxxstd>98 : abi_test_03_11 ;
308 run abi_test_main.cpp abi_test_mt/<cxxstd>98 : : : <cxxstd>0x : abi_test_11_03 ;
309
310 run weak_ptr_alias_test.cpp ;
311 run weak_ptr_alias_move_test.cpp ;
312
313 run sp_typeinfo_test.cpp : : : <rtti>off : sp_typeinfo_test_no_rtti ;
314
315 run get_deleter_test.cpp : : : <rtti>off <toolset>gcc-4.4.7,<cxxstd>0x:<build>no : get_deleter_test_no_rtti ;
316 run get_deleter_test2.cpp : : : <rtti>off <toolset>gcc-4.4.7,<cxxstd>0x:<build>no : get_deleter_test2_no_rtti ;
317 run get_deleter_test3.cpp : : : <rtti>off <toolset>gcc-4.4.7,<cxxstd>0x:<build>no : get_deleter_test3_no_rtti ;
318
319 run shared_from_test.cpp ;
320 run weak_from_test.cpp ;
321 run weak_from_test2.cpp ;
322
323 run allocate_unique_aggregate_test.cpp ;
324 run allocate_unique_args_test.cpp ;
325 run allocate_unique_array_construct_test.cpp ;
326 run allocate_unique_array_noinit_test.cpp ;
327 run allocate_unique_arrays_test.cpp ;
328 run allocate_unique_array_test.cpp ;
329 run allocate_unique_array_throws_test.cpp ;
330 run allocate_unique_array_value_test.cpp ;
331 run allocate_unique_construct_test.cpp ;
332 run allocate_unique_noinit_test.cpp ;
333 run allocate_unique_test.cpp ;
334 run allocate_unique_throws_test.cpp ;
335 run allocate_unique_value_test.cpp ;