| 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 |  | 
|---|
| 5 | use-project /boost/python : ../build ; | 
|---|
| 6 | project /boost/python/test ; | 
|---|
| 7 |  | 
|---|
| 8 | rule py-run ( sources * : input-file ? ) | 
|---|
| 9 | { | 
|---|
| 10 |     return [ run $(sources) /boost/python//boost_python /python//python | 
|---|
| 11 |       : # args | 
|---|
| 12 |       : $(input-file) | 
|---|
| 13 |       : #requirements | 
|---|
| 14 |         <define>BOOST_PYTHON_SUPPRESS_REGISTRY_INITIALIZATION | 
|---|
| 15 |   | 
|---|
| 16 |     ] ; | 
|---|
| 17 | } | 
|---|
| 18 |  | 
|---|
| 19 | rule py-compile ( sources * ) | 
|---|
| 20 | { | 
|---|
| 21 |     return [ compile $(sources) /boost/python//boost_python ] ; | 
|---|
| 22 | } | 
|---|
| 23 |  | 
|---|
| 24 | rule py-compile-fail ( sources * ) | 
|---|
| 25 | { | 
|---|
| 26 |     return [ compile-fail $(sources) /boost/python//boost_python ] ; | 
|---|
| 27 | } | 
|---|
| 28 |  | 
|---|
| 29 |  | 
|---|
| 30 | test-suite python | 
|---|
| 31 |   : | 
|---|
| 32 |  | 
|---|
| 33 |   [ | 
|---|
| 34 |     run exec.cpp ../build//boost_python/<link>static /python//python | 
|---|
| 35 |       : # program args | 
|---|
| 36 |       : exec.py # input files | 
|---|
| 37 |       : # requirements | 
|---|
| 38 |       : # target-name | 
|---|
| 39 |   ] | 
|---|
| 40 |  | 
|---|
| 41 |   [ | 
|---|
| 42 |     run exec.cpp ../build//boost_python/<link>shared /python//python | 
|---|
| 43 |       : # program args | 
|---|
| 44 |       : exec.py | 
|---|
| 45 |       : # requirements | 
|---|
| 46 |       : exec-dynamic # target-name | 
|---|
| 47 |   ] | 
|---|
| 48 |  | 
|---|
| 49 | #   [ | 
|---|
| 50 | #     run import_.cpp ../build//boost_python /python//python | 
|---|
| 51 | #       : # program args | 
|---|
| 52 | #       : import_.py # input files | 
|---|
| 53 | #       : # requirements | 
|---|
| 54 | #       : # target-name | 
|---|
| 55 | #   ] | 
|---|
| 56 |  | 
|---|
| 57 | [ | 
|---|
| 58 | bpl-test crossmod_exception | 
|---|
| 59 |   : crossmod_exception.py crossmod_exception_a.cpp crossmod_exception_b.cpp | 
|---|
| 60 | ] | 
|---|
| 61 |  | 
|---|
| 62 | [ bpl-test injected ] | 
|---|
| 63 | [ bpl-test properties ] | 
|---|
| 64 | [ bpl-test return_arg ] | 
|---|
| 65 | [ bpl-test staticmethod ] | 
|---|
| 66 | [ bpl-test shared_ptr ] | 
|---|
| 67 | [ bpl-test andreas_beyer ] | 
|---|
| 68 | [ bpl-test polymorphism ] | 
|---|
| 69 | [ bpl-test polymorphism2 ] | 
|---|
| 70 |  | 
|---|
| 71 | [ bpl-test wrapper_held_type ] | 
|---|
| 72 | [ bpl-test polymorphism2_auto_ptr ] | 
|---|
| 73 |  | 
|---|
| 74 | [ bpl-test auto_ptr ] | 
|---|
| 75 |  | 
|---|
| 76 | [ bpl-test minimal ] | 
|---|
| 77 | [ bpl-test args ] | 
|---|
| 78 | [ bpl-test raw_ctor ] | 
|---|
| 79 | [ bpl-test numpy : numpy.py printer.py numeric_tests.py numarray_tests.py numpy.cpp ] | 
|---|
| 80 | [ bpl-test enum ] | 
|---|
| 81 | [ bpl-test exception_translator ] | 
|---|
| 82 | [ bpl-test pearu1 : test_cltree.py cltree.cpp ] | 
|---|
| 83 | [ bpl-test try : newtest.py m1.cpp m2.cpp ] | 
|---|
| 84 | [ bpl-test const_argument ] | 
|---|
| 85 | [ bpl-test keywords : keywords.cpp keywords_test.py ] | 
|---|
| 86 |     | 
|---|
| 87 |  | 
|---|
| 88 | [ python-extension builtin_converters_ext : test_builtin_converters.cpp /boost/python//boost_python ] | 
|---|
| 89 | [ bpl-test builtin_converters : test_builtin_converters.py builtin_converters_ext ] | 
|---|
| 90 |  | 
|---|
| 91 |  [ bpl-test test_pointer_adoption ] | 
|---|
| 92 |  [ bpl-test operators ] | 
|---|
| 93 |  [ bpl-test callbacks ] | 
|---|
| 94 |  [ bpl-test defaults ] | 
|---|
| 95 |  | 
|---|
| 96 | [ bpl-test object ] | 
|---|
| 97 | [ bpl-test list ] | 
|---|
| 98 | [ bpl-test long ] | 
|---|
| 99 | [ bpl-test dict ] | 
|---|
| 100 | [ bpl-test tuple ] | 
|---|
| 101 | [ bpl-test str ] | 
|---|
| 102 | [ bpl-test slice ] | 
|---|
| 103 |  | 
|---|
| 104 | [ bpl-test virtual_functions ] | 
|---|
| 105 | [ bpl-test back_reference ] | 
|---|
| 106 | [ bpl-test implicit ] | 
|---|
| 107 | [ bpl-test data_members ] | 
|---|
| 108 |  | 
|---|
| 109 | [ bpl-test ben_scott1 ] | 
|---|
| 110 |  | 
|---|
| 111 | [ bpl-test bienstman1 ] | 
|---|
| 112 | [ bpl-test bienstman2 ] | 
|---|
| 113 | [ bpl-test bienstman3 ] | 
|---|
| 114 |  | 
|---|
| 115 | [ bpl-test multi_arg_constructor | 
|---|
| 116 |   : # files | 
|---|
| 117 |   : # requirements | 
|---|
| 118 |     # A bug in the Win32 intel compilers causes compilation of one of our | 
|---|
| 119 |     # tests to take forever when debug symbols are enabled. This rule | 
|---|
| 120 |     # turns them off when added to the requirements section | 
|---|
| 121 |     <toolset>intel-win:<debug-symbols>off | 
|---|
| 122 | ] | 
|---|
| 123 |  | 
|---|
| 124 | [ bpl-test iterator : iterator.py iterator.cpp input_iterator.cpp ] | 
|---|
| 125 |  | 
|---|
| 126 | [ bpl-test stl_iterator : stl_iterator.py stl_iterator.cpp ] | 
|---|
| 127 |  | 
|---|
| 128 | [ bpl-test extract ] | 
|---|
| 129 |  | 
|---|
| 130 | [ | 
|---|
| 131 | bpl-test crossmod_opaque | 
|---|
| 132 |   : crossmod_opaque.py crossmod_opaque_a.cpp crossmod_opaque_b.cpp | 
|---|
| 133 | ] | 
|---|
| 134 | [ bpl-test opaque ] | 
|---|
| 135 | [ bpl-test voidptr ] | 
|---|
| 136 |  | 
|---|
| 137 | [ bpl-test pickle1 ] | 
|---|
| 138 | [ bpl-test pickle2 ] | 
|---|
| 139 | [ bpl-test pickle3 ] | 
|---|
| 140 | [ bpl-test pickle4 ] | 
|---|
| 141 |  | 
|---|
| 142 | [ bpl-test nested ] | 
|---|
| 143 |  | 
|---|
| 144 | [ bpl-test docstring ] | 
|---|
| 145 |  | 
|---|
| 146 | [ bpl-test vector_indexing_suite ] | 
|---|
| 147 |  | 
|---|
| 148 | [ bpl-test pointer_vector | 
|---|
| 149 |   : # files | 
|---|
| 150 |   : # requirements | 
|---|
| 151 |     # Turn off this test on HP CXX, as the test hangs when executing. | 
|---|
| 152 |     # Whenever the cause for the failure of the polymorphism test is found | 
|---|
| 153 |     # and fixed, this should be retested. | 
|---|
| 154 |     <toolset>hp_cxx:<build>no ] | 
|---|
| 155 |        | 
|---|
| 156 | [ python-extension map_indexing_suite_ext | 
|---|
| 157 |     : map_indexing_suite.cpp int_map_indexing_suite.cpp | 
|---|
| 158 |     /boost/python//boost_python ] | 
|---|
| 159 | [ bpl-test   | 
|---|
| 160 |     map_indexing_suite : map_indexing_suite.py map_indexing_suite_ext ] | 
|---|
| 161 |        | 
|---|
| 162 | # if $(TEST_BIENSTMAN_NON_BUGS) | 
|---|
| 163 | # { | 
|---|
| 164 | #     bpl-test bienstman4 ; | 
|---|
| 165 | #     bpl-test bienstman5 ; | 
|---|
| 166 | # } | 
|---|
| 167 |  | 
|---|
| 168 | # --- unit tests of library components --- | 
|---|
| 169 |  | 
|---|
| 170 | [ compile indirect_traits_test.cpp ] | 
|---|
| 171 | [ run destroy_test.cpp ] | 
|---|
| 172 | [ py-run pointer_type_id_test.cpp ] | 
|---|
| 173 | [ py-run bases.cpp ] | 
|---|
| 174 | [ run if_else.cpp ] | 
|---|
| 175 | [ py-run pointee.cpp ] | 
|---|
| 176 | [ run result.cpp ] | 
|---|
| 177 |  | 
|---|
| 178 | [ compile string_literal.cpp ] | 
|---|
| 179 | [ py-compile borrowed.cpp ] | 
|---|
| 180 | [ py-compile object_manager.cpp ] | 
|---|
| 181 | [ py-compile copy_ctor_mutates_rhs.cpp ] | 
|---|
| 182 |  | 
|---|
| 183 | [ py-run upcast.cpp ] | 
|---|
| 184 |    | 
|---|
| 185 | [ py-compile select_holder.cpp ] | 
|---|
| 186 |    | 
|---|
| 187 | [ run select_from_python_test.cpp ../src/converter/type_id.cpp  | 
|---|
| 188 |   :    | 
|---|
| 189 |   : | 
|---|
| 190 |   : <define>BOOST_PYTHON_STATIC_LIB | 
|---|
| 191 |     <use>/python//python | 
|---|
| 192 |  | 
|---|
| 193 | ] | 
|---|
| 194 |  | 
|---|
| 195 |  [ py-compile select_arg_to_python_test.cpp ] | 
|---|
| 196 |  | 
|---|
| 197 | [ py-compile-fail ./raw_pyobject_fail1.cpp ] | 
|---|
| 198 | [ py-compile-fail ./raw_pyobject_fail2.cpp ] | 
|---|
| 199 | [ py-compile-fail ./as_to_python_function.cpp ] | 
|---|
| 200 | [ py-compile-fail ./object_fail1.cpp ] | 
|---|
| 201 |  | 
|---|
| 202 |   ; | 
|---|