1 | |
---|
2 | use-project /boost/python : ../build ; |
---|
3 | project /boost/python/test ; |
---|
4 | |
---|
5 | # A bug in the Win32 intel compilers causes compilation of one of our |
---|
6 | # tests to take forever when debug symbols are enabled. This rule |
---|
7 | # turns them off when added to the requirements section |
---|
8 | #rule turn-off-intel-debug-symbols ( toolset variant : properties * ) |
---|
9 | #{ |
---|
10 | # if $(NT) && [ MATCH (.*intel.*) : $(toolset) ] |
---|
11 | # { |
---|
12 | # properties = [ difference $(properties) : <debug-symbols>on ] <debug-symbols>off ; |
---|
13 | # } |
---|
14 | # return $(properties) ; |
---|
15 | #} |
---|
16 | |
---|
17 | rule py-run ( sources * ) |
---|
18 | { |
---|
19 | return [ run $(sources) /boost/python//boost_python ] ; |
---|
20 | } |
---|
21 | |
---|
22 | rule py-compile ( sources * ) |
---|
23 | { |
---|
24 | return [ compile $(sources) /boost/python//boost_python ] ; |
---|
25 | } |
---|
26 | |
---|
27 | rule py-compile-fail ( sources * ) |
---|
28 | { |
---|
29 | return [ compile-fail $(sources) /boost/python//boost_python ] ; |
---|
30 | } |
---|
31 | |
---|
32 | |
---|
33 | |
---|
34 | #template py-unit-test |
---|
35 | # : |
---|
36 | # : $(PYTHON_PROPERTIES) <define>BOOST_PYTHON_SUPPRESS_REGISTRY_INITIALIZATION |
---|
37 | # [ difference $(PYTHON_PROPERTIES) : <define>BOOST_PYTHON_DYNAMIC_LIB ] <define>BOOST_PYTHON_STATIC_LIB |
---|
38 | # ; |
---|
39 | |
---|
40 | |
---|
41 | test-suite python |
---|
42 | : |
---|
43 | [ run ../test/embedding.cpp ../build//boost_python /python//python ] |
---|
44 | |
---|
45 | [ |
---|
46 | bpl-test crossmod_exception |
---|
47 | : crossmod_exception.py crossmod_exception_a.cpp crossmod_exception_b.cpp |
---|
48 | ] |
---|
49 | |
---|
50 | [ bpl-test injected ] |
---|
51 | [ bpl-test properties ] |
---|
52 | [ bpl-test return_arg ] |
---|
53 | [ bpl-test staticmethod ] |
---|
54 | [ bpl-test shared_ptr ] |
---|
55 | [ bpl-test polymorphism ] |
---|
56 | [ bpl-test polymorphism2 ] |
---|
57 | [ bpl-test auto_ptr ] |
---|
58 | [ bpl-test minimal ] |
---|
59 | [ bpl-test args ] |
---|
60 | [ bpl-test raw_ctor ] |
---|
61 | [ bpl-test numpy ] |
---|
62 | [ bpl-test enum ] |
---|
63 | [ bpl-test exception_translator ] |
---|
64 | [ bpl-test pearu1 : test_cltree.py cltree.cpp ] |
---|
65 | [ bpl-test try : newtest.py m1.cpp m2.cpp ] |
---|
66 | [ bpl-test const_argument ] |
---|
67 | [ bpl-test keywords : keywords.cpp keywords_test.py ] |
---|
68 | |
---|
69 | |
---|
70 | [ python-extension builtin_converters : test_builtin_converters.cpp /boost/python//boost_python ] |
---|
71 | [ bpl-test builtin_converters_test : test_builtin_converters.py builtin_converters ] |
---|
72 | |
---|
73 | [ bpl-test test_pointer_adoption ] |
---|
74 | [ bpl-test operators ] |
---|
75 | [ bpl-test callbacks ] |
---|
76 | [ bpl-test defaults ] |
---|
77 | |
---|
78 | [ bpl-test object ] |
---|
79 | [ bpl-test list ] |
---|
80 | [ bpl-test long ] |
---|
81 | [ bpl-test dict ] |
---|
82 | [ bpl-test tuple ] |
---|
83 | [ bpl-test str ] |
---|
84 | [ bpl-test slice ] |
---|
85 | |
---|
86 | [ bpl-test virtual_functions ] |
---|
87 | [ bpl-test back_reference ] |
---|
88 | [ bpl-test implicit ] |
---|
89 | [ bpl-test data_members ] |
---|
90 | |
---|
91 | [ bpl-test ben_scott1 ] |
---|
92 | |
---|
93 | [ bpl-test bienstman1 ] |
---|
94 | [ bpl-test bienstman2 ] |
---|
95 | [ bpl-test bienstman3 ] |
---|
96 | # |
---|
97 | #[ bpl-test multi_arg_constructor |
---|
98 | # : # files |
---|
99 | # : # requirements |
---|
100 | # turn-off-intel-debug-symbols ] # debug symbols slow the build down too much |
---|
101 | # |
---|
102 | [ bpl-test iterator : iterator.py iterator.cpp input_iterator.cpp ] |
---|
103 | |
---|
104 | [ bpl-test extract ] |
---|
105 | |
---|
106 | [ bpl-test opaque ] |
---|
107 | |
---|
108 | [ bpl-test pickle1 ] |
---|
109 | [ bpl-test pickle2 ] |
---|
110 | [ bpl-test pickle3 ] |
---|
111 | [ bpl-test pickle4 ] |
---|
112 | |
---|
113 | [ bpl-test nested ] |
---|
114 | |
---|
115 | [ bpl-test docstring ] |
---|
116 | |
---|
117 | [ bpl-test vector_indexing_suite ] |
---|
118 | [ bpl-test pointer_vector ] |
---|
119 | |
---|
120 | [ python-extension map_indexing_suite_ext |
---|
121 | : map_indexing_suite.cpp int_map_indexing_suite.cpp |
---|
122 | /boost/python//boost_python ] |
---|
123 | [ bpl-test |
---|
124 | map_indexing_suite : map_indexing_suite.py map_indexing_suite_ext ] |
---|
125 | |
---|
126 | # if $(TEST_BIENSTMAN_NON_BUGS) |
---|
127 | # { |
---|
128 | # bpl-test bienstman4 ; |
---|
129 | # bpl-test bienstman5 ; |
---|
130 | # } |
---|
131 | |
---|
132 | # --- unit tests of library components --- |
---|
133 | |
---|
134 | [ run indirect_traits_test.cpp ] |
---|
135 | [ run destroy_test.cpp ] |
---|
136 | [ py-run pointer_type_id_test.cpp ] |
---|
137 | [ py-run bases.cpp ] |
---|
138 | [ run if_else.cpp ] |
---|
139 | [ py-run pointee.cpp ] |
---|
140 | [ run result.cpp ] |
---|
141 | |
---|
142 | [ compile string_literal.cpp ] |
---|
143 | [ py-compile borrowed.cpp ] |
---|
144 | [ py-compile object_manager.cpp ] |
---|
145 | [ py-compile copy_ctor_mutates_rhs.cpp ] |
---|
146 | |
---|
147 | [ py-run upcast.cpp ] |
---|
148 | |
---|
149 | [ py-compile select_holder.cpp ] |
---|
150 | |
---|
151 | [ py-run select_from_python_test.cpp ../src/converter/type_id.cpp ] |
---|
152 | |
---|
153 | [ py-compile select_arg_to_python_test.cpp ] |
---|
154 | |
---|
155 | [ py-compile-fail ./raw_pyobject_fail1.cpp ] |
---|
156 | [ py-compile-fail ./raw_pyobject_fail2.cpp ] |
---|
157 | [ py-compile-fail ./as_to_python_function.cpp ] |
---|
158 | [ py-compile-fail ./object_fail1.cpp ] |
---|
159 | |
---|
160 | ; |
---|