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