• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#  Boost.Core Library test Jamfile
2#
3#  Copyright (c) 2014, 2017 Peter Dimov
4#
5#  Distributed under the Boost Software License, Version 1.0.
6#  See accompanying file LICENSE_1_0.txt or copy at
7#  http://www.boost.org/LICENSE_1_0.txt
8
9import modules ;
10import testing ;
11
12# quick test (for CI)
13run quick.cpp ;
14
15# full test suite
16run addressof_test.cpp ;
17run addressof_test2.cpp ;
18run addressof_np_test.cpp ;
19run addressof_fn_test.cpp ;
20compile addressof_constexpr_test.cpp ;
21compile-fail addressof_fail_rvalue.cpp ;
22
23run checked_delete_test.cpp ;
24compile-fail checked_delete_fail.cpp ;
25compile-fail checked_delete_fail2.cpp ;
26
27compile ref_ct_test.cpp ;
28run ref_test.cpp ;
29run ref_ref_test.cpp ;
30run ref_fn_test.cpp ;
31compile-fail ref_rv_fail1.cpp ;
32compile-fail ref_rv_fail2.cpp ;
33compile-fail ref_rv_fail3.cpp ;
34compile-fail ref_rv_fail4.cpp ;
35compile-fail ref_rv_fail5.cpp ;
36compile-fail ref_implicit_fail.cpp ;
37compile-fail ref_implicit_fail2.cpp ;
38run ref_cv_test.cpp ;
39
40run eif_constructors.cpp ;
41run eif_dummy_arg_disambiguation.cpp ;
42run eif_lazy.cpp ;
43run eif_lazy_test.cpp ;
44run eif_member_templates.cpp ;
45run eif_namespace_disambiguation.cpp ;
46run eif_no_disambiguation.cpp ;
47run eif_partial_specializations.cpp ;
48
49compile-fail noncopyable_compile_fail.cpp ;
50
51run explicit_operator_bool.cpp ;
52run explicit_operator_bool_noexcept.cpp ;
53compile-fail explicit_operator_bool_compile_fail_conv_int.cpp ;
54compile-fail explicit_operator_bool_compile_fail_conv_pvoid.cpp ;
55compile-fail explicit_operator_bool_compile_fail_delete.cpp ;
56compile-fail explicit_operator_bool_compile_fail_shift.cpp ;
57
58compile ignore_unused_test.cpp
59  : <warnings>extra
60    <toolset>gcc:<warnings-as-errors>on
61    <toolset>clang:<warnings-as-errors>on
62    <toolset>msvc:<warnings-as-errors>on ;
63
64run sp_typeinfo_test.cpp ;
65run sp_typeinfo_test.cpp : : : <rtti>off : sp_typeinfo_test_no_rtti ;
66
67run visit_each_test.cpp ;
68
69run get_pointer_test.cpp ;
70
71local pedantic-errors = <warnings>pedantic
72    <toolset>msvc:<warnings-as-errors>on
73    <toolset>gcc:<warnings-as-errors>on
74    <toolset>clang:<warnings-as-errors>on ;
75
76run lightweight_test_test.cpp
77  : : : $(pedantic-errors) ;
78run lightweight_test_test.cpp : : :
79  <exception-handling>off $(pedantic-errors) : lightweight_test_test_no_except ;
80run lightweight_test_test2.cpp
81  : : : $(pedantic-errors) ;
82run lightweight_test_all_with_test.cpp
83  : : : $(pedantic-errors) ;
84run lightweight_test_lt_le_test.cpp
85  : : : $(pedantic-errors) ;
86run lightweight_test_gt_ge_test.cpp
87  : : : $(pedantic-errors) ;
88run lightweight_test_eq_nullptr.cpp
89  : : : $(pedantic-errors) ;
90run lightweight_test_test3.cpp
91  : : : $(pedantic-errors) ;
92run lightweight_test_test4.cpp
93  : : : $(pedantic-errors) ;
94run lightweight_test_test5.cpp
95  : : : $(pedantic-errors)
96    <toolset>gcc-4.4.7:<cxxflags>-Wno-sign-compare ;
97
98run-fail lightweight_test_all_eq_test.cpp ;
99run-fail lightweight_test_all_with_fail.cpp ;
100
101run-fail lightweight_test_fail.cpp ;
102run-fail lightweight_test_fail2.cpp ;
103run-fail lightweight_test_fail3.cpp ;
104run-fail lightweight_test_fail4.cpp ;
105run-fail lightweight_test_fail5.cpp ;
106run-fail lightweight_test_fail6.cpp ;
107run-fail lightweight_test_fail7.cpp ;
108run-fail lightweight_test_fail7.cpp : : : <rtti>off : lightweight_test_fail7_no_rtti ;
109run-fail lightweight_test_fail8.cpp ;
110run-fail lightweight_test_fail8.cpp : : : <rtti>off : lightweight_test_fail8_no_rtti ;
111run-fail lightweight_test_fail9.cpp ;
112run-fail lightweight_test_fail10.cpp ;
113run-fail lightweight_test_fail11.cpp : ;
114run-fail lightweight_test_fail12.cpp ;
115run-fail lightweight_test_fail13.cpp ;
116run-fail lightweight_test_fail14.cpp ;
117run-fail lightweight_test_lt_fail.cpp ;
118run-fail lightweight_test_le_fail.cpp ;
119run-fail lightweight_test_gt_fail.cpp ;
120run-fail lightweight_test_ge_fail.cpp ;
121
122run lightweight_test_bool.cpp
123  : : : $(pedantic-errors) ;
124
125run lightweight_test_with_test.cpp
126  : : : $(pedantic-errors) ;
127run-fail lightweight_test_with_fail.cpp ;
128
129run is_same_test.cpp ;
130
131run typeinfo_test.cpp ;
132run typeinfo_test.cpp : : : <rtti>off : typeinfo_test_no_rtti ;
133
134run iterator_test.cpp ;
135run detail_iterator_test.cpp ;
136
137run demangle_test.cpp
138  : : : <test-info>always_show_run_output ;
139
140run demangled_name_test.cpp
141  : : : <test-info>always_show_run_output ;
142
143run demangled_name_test.cpp  : : : <rtti>off <test-info>always_show_run_output : demangled_name_test_no_rtti ;
144
145run scoped_enum.cpp ;
146compile-fail scoped_enum_compile_fail_conv_from_int.cpp ;
147compile-fail scoped_enum_compile_fail_conv_to_int.cpp ;
148
149run underlying_type.cpp ;
150
151run pointer_traits_pointer_test.cpp ;
152run pointer_traits_element_type_test.cpp ;
153run pointer_traits_difference_type_test.cpp ;
154run pointer_traits_rebind_test.cpp ;
155run pointer_traits_pointer_to_test.cpp ;
156run to_address_test.cpp ;
157
158run exchange_test.cpp ;
159run exchange_move_test.cpp ;
160
161run first_scalar_test.cpp ;
162compile first_scalar_constexpr_test.cpp ;
163
164run empty_value_test.cpp ;
165run empty_value_size_test.cpp ;
166run empty_value_final_test.cpp ;
167
168run quick_exit_test.cpp ;
169run-fail quick_exit_fail.cpp ;
170
171compile use_default_test.cpp ;
172
173run default_allocator_test.cpp
174  : : : <warnings>pedantic
175        <toolset>msvc:<warnings-as-errors>on
176        <toolset>gcc:<warnings-as-errors>on
177        <toolset>clang:<warnings-as-errors>on ;
178
179run noinit_adaptor_test.cpp ;
180run alloc_construct_test.cpp ;
181run alloc_construct_throws_test.cpp ;
182run alloc_construct_cxx11_test.cpp ;
183
184run nvp_test.cpp ;
185
186run allocator_value_type_test.cpp ;
187run allocator_pointer_test.cpp ;
188run allocator_const_pointer_test.cpp ;
189run allocator_void_pointer_test.cpp ;
190run allocator_const_void_pointer_test.cpp ;
191run allocator_difference_type_test.cpp ;
192run allocator_size_type_test.cpp ;
193run allocator_pocca_test.cpp ;
194run allocator_pocma_test.cpp ;
195run allocator_pocs_test.cpp ;
196run allocator_is_always_equal_test.cpp ;
197run allocator_rebind_test.cpp ;
198run allocator_allocate_test.cpp ;
199run allocator_allocate_hint_test.cpp ;
200run allocator_deallocate_test.cpp ;
201run allocator_max_size_test.cpp ;
202run allocator_soccc_test.cpp ;
203
204lib lib_typeid : lib_typeid.cpp : <link>shared:<define>LIB_TYPEID_DYN_LINK=1 ;
205
206run test_lib_typeid.cpp lib_typeid : : : <link>shared : test_lib_typeid_shared ;
207run test_lib_typeid.cpp lib_typeid : : : <link>static : test_lib_typeid_static ;
208
209run test_lib_typeid.cpp lib_typeid : : : <link>shared <rtti>off : test_lib_typeid_shared_no_rtti ;
210run test_lib_typeid.cpp lib_typeid : : : <link>static <rtti>off : test_lib_typeid_static_no_rtti ;
211
212run uncaught_exceptions.cpp
213  : : : <exception-handling>on ;
214run uncaught_exceptions_np.cpp
215  : : : <exception-handling>on ;
216
217run no_exceptions_support_test.cpp ;
218run no_exceptions_support_test.cpp : : : <exception-handling>off : no_exceptions_support_test_nx ;
219
220use-project /boost/core/swap : ./swap ;
221build-project ./swap ;
222