Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / core / test / Jamfile.v2
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
9 import modules ;
10 import testing ;
11
12 # quick test (for CI)
13 run quick.cpp ;
14
15 # full test suite
16 run addressof_test.cpp ;
17 run addressof_test2.cpp ;
18 run addressof_np_test.cpp ;
19 run addressof_fn_test.cpp ;
20 compile addressof_constexpr_test.cpp ;
21 compile-fail addressof_fail_rvalue.cpp ;
22
23 run checked_delete_test.cpp ;
24 compile-fail checked_delete_fail.cpp ;
25 compile-fail checked_delete_fail2.cpp ;
26
27 compile ref_ct_test.cpp ;
28 run ref_test.cpp ;
29 run ref_ref_test.cpp ;
30 run ref_fn_test.cpp ;
31 compile-fail ref_rv_fail1.cpp ;
32 compile-fail ref_rv_fail2.cpp ;
33 compile-fail ref_rv_fail3.cpp ;
34 compile-fail ref_rv_fail4.cpp ;
35 compile-fail ref_rv_fail5.cpp ;
36 compile-fail ref_implicit_fail.cpp ;
37 compile-fail ref_implicit_fail2.cpp ;
38 run ref_cv_test.cpp ;
39
40 run eif_constructors.cpp ;
41 run eif_dummy_arg_disambiguation.cpp ;
42 run eif_lazy.cpp ;
43 run eif_lazy_test.cpp ;
44 run eif_member_templates.cpp ;
45 run eif_namespace_disambiguation.cpp ;
46 run eif_no_disambiguation.cpp ;
47 run eif_partial_specializations.cpp ;
48
49 compile-fail noncopyable_compile_fail.cpp ;
50
51 run explicit_operator_bool.cpp ;
52 run explicit_operator_bool_noexcept.cpp ;
53 compile-fail explicit_operator_bool_compile_fail_conv_int.cpp ;
54 compile-fail explicit_operator_bool_compile_fail_conv_pvoid.cpp ;
55 compile-fail explicit_operator_bool_compile_fail_delete.cpp ;
56 compile-fail explicit_operator_bool_compile_fail_shift.cpp ;
57
58 compile ignore_unused_test.cpp : <toolset>gcc-4.8:<cxxflags>"-Wunused-variable -Wunused-local-typedefs -Werror"
59                                    <toolset>gcc:<cxxflags>"-Wunused-variable -Werror"
60                                    <toolset>clang:<cxxflags>"-Wunused-variable -Werror"
61                                    <toolset>msvc:<cxxflags>"/we4100 /we4101" ;
62 run sp_typeinfo_test.cpp ;
63 run sp_typeinfo_test.cpp : : : <rtti>off : sp_typeinfo_test_no_rtti ;
64
65 run visit_each_test.cpp ;
66
67 run get_pointer_test.cpp ;
68
69 run lightweight_test_test.cpp ;
70 run lightweight_test_test.cpp : : : <exception-handling>off : lightweight_test_test_no_except ;
71 run lightweight_test_test2.cpp ;
72 run lightweight_test_all_with_test.cpp ;
73 run lightweight_test_lt_le_test.cpp ;
74 run lightweight_test_gt_ge_test.cpp ;
75 run lightweight_test_eq_nullptr.cpp ;
76 run lightweight_test_test3.cpp ;
77 run lightweight_test_test4.cpp ;
78 run lightweight_test_test5.cpp : : :
79     <warnings>extra
80     <toolset>msvc:<warnings-as-errors>on
81     <toolset>gcc:<warnings-as-errors>on
82     <toolset>clang:<warnings-as-errors>on
83     <toolset>gcc-4.4.7:<cxxflags>-Wno-sign-compare ;
84
85 run-fail lightweight_test_all_eq_test.cpp ;
86 run-fail lightweight_test_all_with_fail.cpp ;
87
88 run-fail lightweight_test_fail.cpp ;
89 run-fail lightweight_test_fail2.cpp ;
90 run-fail lightweight_test_fail3.cpp ;
91 run-fail lightweight_test_fail4.cpp ;
92 run-fail lightweight_test_fail5.cpp ;
93 run-fail lightweight_test_fail6.cpp ;
94 run-fail lightweight_test_fail7.cpp ;
95 run-fail lightweight_test_fail7.cpp : : : <rtti>off : lightweight_test_fail7_no_rtti ;
96 run-fail lightweight_test_fail8.cpp ;
97 run-fail lightweight_test_fail8.cpp : : : <rtti>off : lightweight_test_fail8_no_rtti ;
98 run-fail lightweight_test_fail9.cpp ;
99 run-fail lightweight_test_fail10.cpp ;
100 run-fail lightweight_test_fail11.cpp ;
101 run-fail lightweight_test_fail12.cpp ;
102 run-fail lightweight_test_lt_fail.cpp ;
103 run-fail lightweight_test_le_fail.cpp ;
104 run-fail lightweight_test_gt_fail.cpp ;
105 run-fail lightweight_test_ge_fail.cpp ;
106
107 run is_same_test.cpp ;
108
109 run typeinfo_test.cpp ;
110 run typeinfo_test.cpp : : : <rtti>off : typeinfo_test_no_rtti ;
111
112 run iterator_test.cpp ;
113 run detail_iterator_test.cpp ;
114
115 run demangle_test.cpp  : : : <test-info>always_show_run_output ;
116
117 run demangled_name_test.cpp  : : : <test-info>always_show_run_output ;
118 run demangled_name_test.cpp  : : : <rtti>off <test-info>always_show_run_output : demangled_name_test_no_rtti ;
119
120 run scoped_enum.cpp ;
121 compile-fail scoped_enum_compile_fail_conv_from_int.cpp ;
122 compile-fail scoped_enum_compile_fail_conv_to_int.cpp ;
123
124 run underlying_type.cpp ;
125
126 run pointer_traits_pointer_test.cpp ;
127 run pointer_traits_element_type_test.cpp ;
128 run pointer_traits_difference_type_test.cpp ;
129 run pointer_traits_rebind_test.cpp ;
130 run pointer_traits_pointer_to_test.cpp ;
131 run to_address_test.cpp ;
132
133 run exchange_test.cpp ;
134 run exchange_move_test.cpp ;
135
136 run first_scalar_test.cpp ;
137 compile first_scalar_constexpr_test.cpp ;
138
139 run empty_value_test.cpp ;
140 run empty_value_size_test.cpp ;
141 run empty_value_final_test.cpp ;
142
143 run quick_exit_test.cpp ;
144 run-fail quick_exit_fail.cpp ;
145
146 compile use_default_test.cpp ;
147
148 run default_allocator_test.cpp ;
149 run noinit_adaptor_test.cpp ;
150 run alloc_construct_test.cpp ;
151 run alloc_construct_throws_test.cpp ;
152 run alloc_construct_cxx11_test.cpp ;
153
154 run nvp_test.cpp ;
155
156 lib lib_typeid : lib_typeid.cpp : <link>shared:<define>LIB_TYPEID_DYN_LINK=1 ;
157
158 run test_lib_typeid.cpp lib_typeid : : : <link>shared : test_lib_typeid_shared ;
159 run test_lib_typeid.cpp lib_typeid : : : <link>static : test_lib_typeid_static ;
160
161 run test_lib_typeid.cpp lib_typeid : : : <link>shared <rtti>off : test_lib_typeid_shared_no_rtti ;
162 run test_lib_typeid.cpp lib_typeid : : : <link>static <rtti>off : test_lib_typeid_static_no_rtti ;
163
164 run uncaught_exceptions.cpp : : : <exception-handling>on ;
165 run uncaught_exceptions_np.cpp : : : <exception-handling>on ;
166
167 run no_exceptions_support_test.cpp ;
168 run no_exceptions_support_test.cpp : : : <exception-handling>off : no_exceptions_support_test_nx ;
169
170 use-project /boost/core/swap : ./swap ;
171 build-project ./swap ;