1#  Boost.SmartPtr Library test Jamfile
2#
3#  Copyright (c) 2003-2013 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# bring in rules for testing
11import testing ;
12
13{
14    test-suite "smart_ptr"
15        : [ run smart_ptr_test.cpp ]
16          [ run shared_ptr_basic_test.cpp : : : <toolset>gcc:<cxxflags>-Wno-non-virtual-dtor ]
17          [ run shared_ptr_test.cpp : : : <toolset>gcc:<cxxflags>-Wno-non-virtual-dtor ]
18          [ run weak_ptr_test.cpp ]
19          [ run weak_ptr_move_test.cpp ]
20          [ run shared_from_this_test.cpp : : : <toolset>gcc:<cxxflags>-Wno-non-virtual-dtor ]
21          [ run get_deleter_test.cpp ]
22          [ run intrusive_ptr_test.cpp ]
23          [ run intrusive_ptr_move_test.cpp ]
24          [ run intrusive_ref_counter_test.cpp ]
25          [ run atomic_count_test.cpp ]
26          [ run lw_mutex_test.cpp ]
27          [ compile-fail shared_ptr_assign_fail.cpp ]
28          [ compile-fail shared_ptr_delete_fail.cpp ]
29          [ compile-fail shared_ptr_compare_fail.cpp ]
30          [ run shared_ptr_alloc2_test.cpp ]
31          [ run pointer_cast_test.cpp ]
32          [ compile pointer_to_other_test.cpp ]
33          [ run auto_ptr_rv_test.cpp ]
34          [ run shared_ptr_alias_test.cpp ]
35          [ run shared_ptr_rv_test.cpp ]
36          [ run shared_ptr_move_test.cpp ]
37          [ compile-fail shared_ptr_pv_fail.cpp ]
38          [ run sp_unary_addr_test.cpp ]
39          [ compile-fail scoped_ptr_eq_fail.cpp ]
40          [ compile-fail scoped_array_eq_fail.cpp ]
41          [ run esft_regtest.cpp ]
42          [ run yield_k_test.cpp ]
43          [ run yield_k_test.cpp : : : <threading>multi : yield_k_test.mt ]
44          [ run spinlock_test.cpp ]
45          [ run spinlock_try_test.cpp ]
46          [ run spinlock_try_test.cpp : : : <threading>multi : spinlock_try_test.mt ]
47          [ run spinlock_pool_test.cpp ]
48          [ run make_shared_test.cpp ]
49          [ run make_shared_perfect_forwarding_test.cpp ]
50          [ run shared_ptr_convertible_test.cpp ]
51          [ run wp_convertible_test.cpp ]
52          [ run ip_convertible_test.cpp ]
53          [ run allocate_shared_test.cpp ]
54          [ run sp_atomic_test.cpp ]
55          [ run esft_void_test.cpp ]
56          [ run esft_second_ptr_test.cpp ]
57          [ run make_shared_esft_test.cpp ]
58          [ run allocate_shared_esft_test.cpp ]
59          [ run sp_recursive_assign_test.cpp ]
60          [ run sp_recursive_assign2_test.cpp ]
61          [ run sp_recursive_assign_rv_test.cpp ]
62          [ run sp_recursive_assign2_rv_test.cpp ]
63          [ compile-fail auto_ptr_lv_fail.cpp ]
64          [ run atomic_count_test2.cpp ]
65          [ run sp_typeinfo_test.cpp ]
66          [ compile make_shared_fp_test.cpp ]
67          [ run sp_hash_test.cpp ]
68          [ run get_deleter_array_test.cpp ]
69          [ run ip_hash_test.cpp ]
70          [ run owner_less_test.cpp ]
71          [ run sp_unique_ptr_test.cpp ]
72          [ run sp_array_test.cpp ]
73          [ compile sp_array_cv_test.cpp ]
74          [ run sp_convertible_test.cpp ]
75          [ run sp_array_n_test.cpp ]
76          [ run sp_array_cast_test.cpp ]
77          [ run sp_zero_compare_test.cpp ]
78          [ run sp_nullptr_test.cpp ]
79          [ run sa_nullptr_test.cpp ]
80          [ run shared_ptr_alloc3_test.cpp ]
81          [ run shared_ptr_alloc11_test.cpp ]
82          [ run allocate_shared_alloc11_test.cpp ]
83          [ run allocate_shared_construct11_test.cpp ]
84          [ run sp_interlocked_test.cpp ]
85
86          [ compile-fail array_fail_spa_sp_c.cpp ]
87          [ compile-fail array_fail_sp_spa_c.cpp ]
88          [ compile-fail array_fail_spa_spa_c.cpp ]
89          [ compile-fail array_fail_spa_wp_c.cpp ]
90          [ compile-fail array_fail_sp_wpa_c.cpp ]
91          [ compile-fail array_fail_spa_wpa_c.cpp ]
92          [ compile-fail array_fail_wpa_wp_c.cpp ]
93          [ compile-fail array_fail_wp_wpa_c.cpp ]
94          [ compile-fail array_fail_wpa_wpa_c.cpp ]
95          [ compile-fail array_fail_ap_spa_c.cpp ]
96          [ compile-fail array_fail_upa_sp_c.cpp ]
97          [ compile-fail array_fail_up_spa_c.cpp ]
98
99          [ compile-fail array_fail_spa_sp_mc.cpp ]
100          [ compile-fail array_fail_sp_spa_mc.cpp ]
101          [ compile-fail array_fail_spa_spa_mc.cpp ]
102          [ compile-fail array_fail_spa_wp_mc.cpp ]
103          [ compile-fail array_fail_sp_wpa_mc.cpp ]
104          [ compile-fail array_fail_spa_wpa_mc.cpp ]
105          [ compile-fail array_fail_wpa_wp_mc.cpp ]
106          [ compile-fail array_fail_wp_wpa_mc.cpp ]
107          [ compile-fail array_fail_wpa_wpa_mc.cpp ]
108          [ compile-fail array_fail_ap_spa_mc.cpp ]
109          [ compile-fail array_fail_upa_sp_mc.cpp ]
110          [ compile-fail array_fail_up_spa_mc.cpp ]
111
112          [ compile-fail array_fail_spa_sp_a.cpp ]
113          [ compile-fail array_fail_sp_spa_a.cpp ]
114          [ compile-fail array_fail_spa_spa_a.cpp ]
115          [ compile-fail array_fail_spa_wp_a.cpp ]
116          [ compile-fail array_fail_sp_wpa_a.cpp ]
117          [ compile-fail array_fail_spa_wpa_a.cpp ]
118          [ compile-fail array_fail_wpa_wp_a.cpp ]
119          [ compile-fail array_fail_wp_wpa_a.cpp ]
120          [ compile-fail array_fail_wpa_wpa_a.cpp ]
121          [ compile-fail array_fail_ap_spa_a.cpp ]
122          [ compile-fail array_fail_upa_sp_a.cpp ]
123          [ compile-fail array_fail_up_spa_a.cpp ]
124
125          [ compile-fail array_fail_spa_sp_ma.cpp ]
126          [ compile-fail array_fail_sp_spa_ma.cpp ]
127          [ compile-fail array_fail_spa_spa_ma.cpp ]
128          [ compile-fail array_fail_spa_wp_ma.cpp ]
129          [ compile-fail array_fail_sp_wpa_ma.cpp ]
130          [ compile-fail array_fail_spa_wpa_ma.cpp ]
131          [ compile-fail array_fail_wpa_wp_ma.cpp ]
132          [ compile-fail array_fail_wp_wpa_ma.cpp ]
133          [ compile-fail array_fail_wpa_wpa_ma.cpp ]
134          [ compile-fail array_fail_ap_spa_ma.cpp ]
135          [ compile-fail array_fail_upa_sp_ma.cpp ]
136          [ compile-fail array_fail_up_spa_ma.cpp ]
137
138          [ compile-fail array_fail_dereference.cpp ]
139          [ compile-fail array_fail_member_access.cpp ]
140          [ compile-fail array_fail_array_access.cpp ]
141
142          [ run make_shared_array_test.cpp ]
143          [ run make_shared_arrays_test.cpp : : : <toolset>gcc-4.6.3_0x:<cxxflags>-fno-deduce-init-list ]
144          [ run make_shared_array_throws_test.cpp ]
145          [ run make_shared_array_esft_test.cpp ]
146          [ run make_shared_array_noinit_test.cpp ]
147          [ run make_shared_array_value_test.cpp ]
148          [ run allocate_shared_array_test.cpp ]
149          [ run allocate_shared_arrays_test.cpp : : : <toolset>gcc-4.6.3_0x:<cxxflags>-fno-deduce-init-list ]
150          [ run allocate_shared_array_throws_test.cpp ]
151          [ run allocate_shared_array_esft_test.cpp ]
152          [ run allocate_shared_array_noinit_test.cpp ]
153          [ run allocate_shared_array_value_test.cpp ]
154          [ run allocate_shared_array_construct_test.cpp ]
155
156          [ run make_unique_test.cpp ]
157          [ run make_unique_args_test.cpp ]
158          [ run make_unique_value_test.cpp ]
159          [ run make_unique_noinit_test.cpp ]
160          [ run make_unique_throws_test.cpp ]
161          [ run make_unique_array_test.cpp ]
162          [ run make_unique_array_noinit_test.cpp ]
163          [ run make_unique_array_throws_test.cpp ]
164
165          [ run shared_from_raw_test.cpp ]
166          [ run shared_from_raw_test2.cpp ]
167          [ run shared_from_raw_test3.cpp ]
168          [ run shared_from_raw_test4.cpp ]
169          [ run shared_from_raw_test5.cpp ]
170          [ run shared_from_raw_test6.cpp ]
171
172          [ run weak_from_raw_test.cpp ]
173          [ run weak_from_raw_test2.cpp ]
174          [ run weak_from_raw_test3.cpp ]
175          [ run weak_from_raw_test4.cpp ]
176          [ run weak_from_raw_test5.cpp ]
177
178          [ compile sp_explicit_inst_test.cpp ]
179
180          [ run weak_from_this_test.cpp ]
181          [ run weak_from_this_test2.cpp ]
182
183          [ run sp_bml_unique_ptr_test.cpp ]
184        ;
185}
186