[29] | 1 | #============================================================================== |
---|
| 2 | # Copyright (c) 2002 Joel de Guzman |
---|
| 3 | # Copyright (c) 2003-2004 Martin Wille |
---|
| 4 | # http://spirit.sourceforge.net/ |
---|
| 5 | # |
---|
| 6 | # Use, modification and distribution is subject to the Boost Software |
---|
| 7 | # License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
---|
| 8 | # http://www.boost.org/LICENSE_1_0.txt) |
---|
| 9 | #============================================================================== |
---|
| 10 | # |
---|
| 11 | # Spirit regression test boost-jam file |
---|
| 12 | # Joel de Guzman [Sept 27, 2002] |
---|
| 13 | # |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | # VP, 2005/04/14: Inside boost, we inherit proper <include> |
---|
| 18 | # from Jamroot. |
---|
| 19 | # Not sure about standalone Spirit. |
---|
| 20 | # SPIRIT_HEADER_INCLUDE ?= ../../.. ; |
---|
| 21 | # spirit-header-include = <include>$(SPIRIT_HEADER_INCLUDE) ; |
---|
| 22 | |
---|
| 23 | rule spirit-run ( sources + : args * : input-files * : requirements * : name ? : default-build * ) |
---|
| 24 | { |
---|
| 25 | name ?= $(sources[1]:D=:S=) ; |
---|
| 26 | return |
---|
| 27 | [ run $(sources) : $(args) : $(input-files) : $(requirements) : $(name) |
---|
| 28 | : $(default-build) ] |
---|
| 29 | [ run $(sources) : $(args) : $(input-files) : $(requirements) |
---|
| 30 | <define>BOOST_SPIRIT_DEBUG=1 : $(name)_debug |
---|
| 31 | : $(default-build) ] |
---|
| 32 | ; |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | ############################################################ |
---|
| 36 | |
---|
| 37 | local opt = <toolset>vc-7.0:<optimization>speed |
---|
| 38 | <toolset>vc-7.0:<inlining>on |
---|
| 39 | <toolset>cw:<optimization>speed ; |
---|
| 40 | |
---|
| 41 | local opt-metrowerks = <toolset>cw:<optimization>speed ; |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | # VP, 2005/04/14: MT is not available with Como, but this is |
---|
| 45 | # not handled yet. |
---|
| 46 | local multi-threading = <library>/boost/thread//boost_thread |
---|
| 47 | <threading>multi <define>BOOST_ALL_NO_LIB=1 ; |
---|
| 48 | |
---|
| 49 | test-suite "spirit.core.kernel" |
---|
| 50 | : [ spirit-run match_tests.cpp ] |
---|
| 51 | ; |
---|
| 52 | |
---|
| 53 | test-suite "spirit.core.scanner" |
---|
| 54 | : [ spirit-run scanner_tests.cpp ] |
---|
| 55 | [ spirit-run scanner_value_type_tests.cpp ] |
---|
| 56 | ; |
---|
| 57 | |
---|
| 58 | test-suite "spirit.core.primitive" |
---|
| 59 | : [ spirit-run primitives_tests.cpp ] |
---|
| 60 | [ spirit-run char_strings_test.cpp ] |
---|
| 61 | [ compile-fail char_strings_test_fail.cpp ] |
---|
| 62 | [ spirit-run numerics_tests.cpp : : : $(opt) ] |
---|
| 63 | ; |
---|
| 64 | |
---|
| 65 | test-suite "spirit.core.composite" |
---|
| 66 | : [ spirit-run epsilon_tests.cpp ] |
---|
| 67 | [ spirit-run negated_eps_p_test.cpp ] |
---|
| 68 | [ spirit-run operators_tests.cpp ] |
---|
| 69 | [ spirit-run directives_tests.cpp ] |
---|
| 70 | [ spirit-run shortest_alternative_tests.cpp ] |
---|
| 71 | ; |
---|
| 72 | |
---|
| 73 | test-suite "spirit.core.non_terminal" |
---|
| 74 | : [ spirit-run rule_tests.cpp ] |
---|
| 75 | [ spirit-run owi_st_tests.cpp ] |
---|
| 76 | [ spirit-run grammar_tests.cpp : : : $(opt-metrowerks) ] |
---|
| 77 | [ spirit-run grammar_multi_instance_tst.cpp : : : $(opt-metrowerks) ] |
---|
| 78 | [ spirit-run subrule_tests.cpp ] |
---|
| 79 | [ run owi_mt_tests.cpp : : : $(multi-threading) ] |
---|
| 80 | [ run grammar_mt_tests.cpp : : : $(multi-threading) ] |
---|
| 81 | [ spirit-run parser_context_test.cpp ] |
---|
| 82 | ; |
---|
| 83 | |
---|
| 84 | # traverse_tests defines SPIRIT_DEBUG, don't run the tests twice |
---|
| 85 | test-suite "spirit.meta" |
---|
| 86 | : [ spirit-run fundamental_tests.cpp ] |
---|
| 87 | [ spirit-run parser_traits_tests.cpp ] |
---|
| 88 | [ spirit-run traverse_tests.cpp : : : <toolset>intel:<debug-symbols>off ] |
---|
| 89 | ; |
---|
| 90 | |
---|
| 91 | test-suite "spirit.attribute" |
---|
| 92 | : [ spirit-run closure_tests.cpp : : : $(opt-metrowerks) ] |
---|
| 93 | [ run bug_000008.cpp : : : $(multi-threading) ] |
---|
| 94 | [ spirit-run parametric_tests.cpp ] |
---|
| 95 | ; |
---|
| 96 | |
---|
| 97 | test-suite "spirit.error_handling" |
---|
| 98 | : [ spirit-run exception_tests.cpp ] |
---|
| 99 | ; |
---|
| 100 | |
---|
| 101 | test-suite "spirit.tree" |
---|
| 102 | : [ spirit-run ast_calc_tests.cpp ] |
---|
| 103 | [ spirit-run group_match_bug.cpp ] |
---|
| 104 | [ spirit-run repeat_ast_tests.cpp ] |
---|
| 105 | [ compile mix_and_match_trees.cpp ] |
---|
| 106 | ; |
---|
| 107 | |
---|
| 108 | # temporarily removed from the test suite. tree_tests are not finished, yet. |
---|
| 109 | # [ spirit-run tree_tests.cpp ] |
---|
| 110 | |
---|
| 111 | test-suite "spirit.dynamic" |
---|
| 112 | : [ compile if_p_as_parser_tests.cpp ] |
---|
| 113 | [ compile while_p_as_parser_tests.cpp ] |
---|
| 114 | [ compile for_p_as_parser_tests.cpp ] |
---|
| 115 | [ spirit-run if_tests.cpp ] |
---|
| 116 | [ spirit-run if_p_int_as_condition_test.cpp ] |
---|
| 117 | [ spirit-run for_tests.cpp ] |
---|
| 118 | [ spirit-run while_tests.cpp ] |
---|
| 119 | [ spirit-run lazy_tests.cpp ] |
---|
| 120 | [ spirit-run switch_tests_eps_default.cpp ] |
---|
| 121 | [ spirit-run switch_tests_general_def.cpp ] |
---|
| 122 | [ spirit-run switch_tests_wo_default.cpp ] |
---|
| 123 | [ spirit-run switch_tests_single.cpp ] |
---|
| 124 | [ spirit-run switch_problem.cpp ] |
---|
| 125 | [ spirit-run select_p_with_rule.cpp ] |
---|
| 126 | ; |
---|
| 127 | |
---|
| 128 | test-suite "spirit.utility.parsers" |
---|
| 129 | : [ spirit-run chset_tests.cpp ] |
---|
| 130 | [ spirit-run confix_tests.cpp ] |
---|
| 131 | [ spirit-run loops_tests.cpp ] |
---|
| 132 | [ spirit-run symbols_tests.cpp ] |
---|
| 133 | [ spirit-run symbols_add_null.cpp ] |
---|
| 134 | [ spirit-run symbols_find_null.cpp ] |
---|
| 135 | [ spirit-run escape_char_parser_tests.cpp : : : $(opt) ] |
---|
| 136 | [ spirit-run distinct_tests.cpp ] |
---|
| 137 | [ spirit-run grammar_def_test.cpp ] |
---|
| 138 | ; |
---|
| 139 | |
---|
| 140 | test-suite "spirit.utility.support" |
---|
| 141 | # This test doesn't actually use multiple threads |
---|
| 142 | : [ spirit-run scoped_lock_tests.cpp : : : $(multi-threading) ] |
---|
| 143 | ; |
---|
| 144 | |
---|
| 145 | test-suite "spirit.iterator" |
---|
| 146 | : [ spirit-run fixed_size_queue_tests.cpp ] |
---|
| 147 | [ compile-fail fixed_size_queue_fail_tests.cpp ] |
---|
| 148 | [ spirit-run file_iterator_tests.cpp ] |
---|
| 149 | [ spirit-run multi_pass_tests.cpp : : : $(opt-metrowerks) ] |
---|
| 150 | [ spirit-run sf_bug_720917.cpp : : : $(opt-metrowerks) ] |
---|
| 151 | [ spirit-run position_iterator_tests.cpp : : : $(opt-metrowerks) ] |
---|
| 152 | [ compile multi_pass_compile_tests.cpp ] |
---|
| 153 | ; |
---|
| 154 | |
---|
| 155 | test-suite "spirit.small_bug_fixes" |
---|
| 156 | : [ spirit-run bug_fixes.cpp ] |
---|
| 157 | ; |
---|
| 158 | |
---|
| 159 | actor_test_sources = |
---|
| 160 | action_tests |
---|
| 161 | assign_test |
---|
| 162 | assign_key_test |
---|
| 163 | clear_test |
---|
| 164 | decrement_test |
---|
| 165 | erase_at_test |
---|
| 166 | increment_test |
---|
| 167 | insert_key_test |
---|
| 168 | insert_at_test |
---|
| 169 | push_back_test |
---|
| 170 | push_front_test |
---|
| 171 | swap_test |
---|
| 172 | ; |
---|
| 173 | |
---|
| 174 | test-suite "spirit.utility.actors" |
---|
| 175 | : [ spirit-run actor/$(actor_test_sources).cpp ] |
---|
| 176 | ; |
---|
| 177 | |
---|
| 178 | test-suite "spirit.typeof-support" |
---|
| 179 | : [ compile typeof_support/typeof_actor.cpp ] |
---|
| 180 | [ compile typeof_support/typeof_attribute.cpp ] |
---|
| 181 | [ compile typeof_support/typeof_core.cpp ] |
---|
| 182 | [ compile typeof_support/typeof_debug.cpp ] |
---|
| 183 | [ compile typeof_support/typeof_dynamic.cpp ] |
---|
| 184 | [ compile typeof_support/typeof_error_handling.cpp ] |
---|
| 185 | [ compile typeof_support/typeof_iterator.cpp ] |
---|
| 186 | [ compile typeof_support/typeof_symbols.cpp ] |
---|
| 187 | [ compile typeof_support/typeof_tree.cpp ] |
---|
| 188 | [ compile typeof_support/typeof_utility.cpp ] |
---|
| 189 | ; |
---|
| 190 | |
---|
| 191 | |
---|