]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/python/test/Jamfile
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / python / test / Jamfile
CommitLineData
7c673cae
FG
1# Copyright David Abrahams 2006. Distributed under the Boost
2# Software License, Version 1.0. (See accompanying
3# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4
5import python ;
6import os ;
7import ../../config/checks/config : requires ;
8
9lib socket ;
10
11use-project /boost/python : ../build ;
12project /boost/python/test
13 : requirements
14 <toolset>gcc:<cxxflags>-Wextra
15 <target-os>qnxnto:<library>socket
16 ;
17
18local PY = ;
19if [ python.configured ]
20{
21 PY = /python//python ;
22}
23
24rule py-run ( sources * : input-file ? )
25{
26 return [ run $(sources) /boost/python//boost_python $(PY)
27 : # args
28 : $(input-file)
29 : #requirements
30 <define>BOOST_PYTHON_SUPPRESS_REGISTRY_INITIALIZATION
31
32 ] ;
33}
34
35rule py-compile ( sources * )
36{
37 return [ compile $(sources) /boost/python//boost_python ] ;
38}
39
40rule py-compile-fail ( sources * )
41{
42 return [ compile-fail $(sources) /boost/python//boost_python ] ;
43}
44
45rule require-windows ( properties * )
46{
47 if ! <target-os>windows in $(properties)
48 {
49 return <build>no ;
50 }
51}
52
92f5a8d4
TL
53if [ python.configured ]
54{
7c673cae
FG
55test-suite python
56 :
57
58 [
59 run exec.cpp /boost/python//boost_python/<link>static $(PY)
60 : # program args
61 : exec.py # input files
62 : # requirements
63 : # target-name
64 ]
65
66 [
67 run exec.cpp ../build//boost_python/<link>shared /python//python
68 : # program args
69 : exec.py
70 : # requirements
71 : exec-dynamic # target-name
72 ]
73
74# [
75# run import_.cpp ../build//boost_python /python//python
76# : # program args
77# : import_.py # input files
78# : # requirements
79# : # target-name
80# ]
81
82[
83bpl-test crossmod_exception
84 : crossmod_exception.py crossmod_exception_a.cpp crossmod_exception_b.cpp
85]
86
87[ bpl-test injected ]
88[ bpl-test properties ]
89[ bpl-test return_arg ]
90[ bpl-test staticmethod ]
91[ bpl-test boost_shared_ptr ]
92[ bpl-test shared_ptr
93 : # sources
94 : [ requires cxx11_smart_ptr ]
95]
96[ bpl-test enable_shared_from_this ]
97[ bpl-test andreas_beyer ]
98[ bpl-test wrapper_held_type ]
99
100[ bpl-test polymorphism2_auto_ptr
101 : polymorphism2_auto_ptr.py polymorphism2.py polymorphism2_auto_ptr.cpp
92f5a8d4 102 : [ requires auto_ptr ]
7c673cae
FG
103]
104
105[ bpl-test polymorphism ]
106[ bpl-test polymorphism2 ]
107
92f5a8d4
TL
108[ bpl-test auto_ptr
109 : # files
110 : [ requires auto_ptr ]
111]
7c673cae
FG
112
113[ bpl-test minimal ]
114[ bpl-test args ]
115[ bpl-test raw_ctor ]
116[ bpl-test enum : test_enum.py enum_ext.cpp ]
117[ bpl-test exception_translator ]
118[ bpl-test pearu1 : test_cltree.py cltree.cpp ]
119[ bpl-test try : newtest.py m1.cpp m2.cpp ]
120[ bpl-test const_argument ]
121[ bpl-test keywords : keywords.cpp keywords_test.py ]
122
123
b32b8144 124[ python-extension builtin_converters_ext : builtin_converters.cpp /boost/python//boost_python ]
7c673cae
FG
125[ bpl-test builtin_converters : test_builtin_converters.py builtin_converters_ext ]
126
127 [ bpl-test test_pointer_adoption ]
128 [ bpl-test operators ]
129 [ bpl-test operators_wrapper ]
130 [ bpl-test callbacks ]
131 [ bpl-test defaults ]
132
133[ bpl-test object ]
134[ bpl-test class ]
1e59de90 135[ bpl-test aligned_class ]
7c673cae
FG
136[ bpl-test list ]
137[ bpl-test long ]
138[ bpl-test dict ]
139[ bpl-test tuple ]
140[ bpl-test str ]
141[ bpl-test slice ]
142
143[ bpl-test virtual_functions ]
144[ bpl-test back_reference ]
145[ bpl-test implicit ]
146[ bpl-test data_members ]
147
148[ bpl-test ben_scott1 ]
149
150[ bpl-test bienstman1 ]
151[ bpl-test bienstman2 ]
152[ bpl-test bienstman3 ]
153
154[ bpl-test multi_arg_constructor
155 : # files
156 : # requirements
157 # A bug in the Win32 intel compilers causes compilation of one of our
158 # tests to take forever when debug symbols are enabled. This rule
159 # turns them off when added to the requirements section
160 <toolset>intel-win:<debug-symbols>off
161]
162
163[ bpl-test iterator : iterator.py iterator.cpp input_iterator.cpp ]
164
165[ bpl-test stl_iterator : stl_iterator.py stl_iterator.cpp ]
166
167[ bpl-test extract ]
168
169[
170bpl-test crossmod_opaque
171 : crossmod_opaque.py crossmod_opaque_a.cpp crossmod_opaque_b.cpp
172]
173[ bpl-test opaque ]
174[ bpl-test voidptr ]
175
176[ bpl-test pickle1 ]
177[ bpl-test pickle2 ]
178[ bpl-test pickle3 ]
179[ bpl-test pickle4 ]
180
181[ bpl-test nested ]
182
183[ bpl-test docstring ]
184[ bpl-test pytype_function ]
185
186[ bpl-test vector_indexing_suite ]
187
188[ bpl-test pointer_vector
189 : # files
190 : # requirements
191 # Turn off this test on HP CXX, as the test hangs when executing.
192 # Whenever the cause for the failure of the polymorphism test is found
193 # and fixed, this should be retested.
194 <toolset>hp_cxx:<build>no ]
195
196[ python-extension map_indexing_suite_ext
197 : map_indexing_suite.cpp int_map_indexing_suite.cpp a_map_indexing_suite.cpp
198 /boost/python//boost_python ]
199[ bpl-test
200 map_indexing_suite : map_indexing_suite.py map_indexing_suite_ext ]
201
202[ run import_.cpp /boost/python//boost_python $(PY) : : import_.py ]
203
204# if $(TEST_BIENSTMAN_NON_BUGS)
205# {
206# bpl-test bienstman4 ;
207# bpl-test bienstman5 ;
208# }
209
210[ bpl-test calling_conventions : : <conditional>@require-windows ]
211[ bpl-test calling_conventions_mf : : <conditional>@require-windows ]
212
213# --- unit tests of library components ---
214
215[ compile indirect_traits_test.cpp ]
216[ run destroy_test.cpp ]
217[ py-run pointer_type_id_test.cpp ]
218[ py-run bases.cpp ]
219[ run if_else.cpp ]
220[ py-run pointee.cpp ]
221[ run result.cpp ]
222
223[ compile string_literal.cpp ]
224[ py-compile borrowed.cpp ]
225[ py-compile object_manager.cpp ]
226[ py-compile copy_ctor_mutates_rhs.cpp ]
227
228[ py-run upcast.cpp ]
229
230[ py-compile select_holder.cpp ]
231
232[ run select_from_python_test.cpp ../src/converter/type_id.cpp
233 :
234 :
235 : <define>BOOST_PYTHON_STATIC_LIB
236 <use>$(PY)
237
238]
239
240 [ py-compile select_arg_to_python_test.cpp ]
241
242[ py-compile-fail ./raw_pyobject_fail1.cpp ]
243[ py-compile-fail ./raw_pyobject_fail2.cpp ]
244[ py-compile-fail ./as_to_python_function.cpp ]
245[ py-compile-fail ./object_fail1.cpp ]
246
247# --- NumPy tests ---
248
249[ numpy-test numpy/dtype ]
250[ numpy-test numpy/ufunc ]
251[ numpy-test numpy/templates ]
252[ numpy-test numpy/ndarray ]
253[ numpy-test numpy/indexing ]
254[ numpy-test numpy/shapes ]
255
256
257 ;
92f5a8d4 258}