Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / regex / test / Jamfile.v2
1 # copyright John Maddock 2003
2 # Distributed under the Boost Software License, Version 1.0. 
3 # (See accompanying file LICENSE_1_0.txt or copy at 
4 # http://www.boost.org/LICENSE_1_0.txt.
5
6 project
7     : requirements 
8       <threading>multi 
9       <link>shared:<define>BOOST_REGEX_DYN_LINK=1 
10       <toolset>msvc-7.1:<define>TEST_MFC=1 
11       <toolset>msvc-7.0:<define>TEST_MFC=1
12       <toolset>msvc:<asynch-exceptions>on
13       # There are unidentified linker problems on these platforms:
14       <toolset>mipspro-7.4:<link>static
15       <toolset>sun-5.9:<link>static
16       <warnings>all
17       <toolset>gcc:<cxxflags>-Wextra
18       <toolset>gcc:<cxxflags>-Wshadow
19       <define>U_USING_ICU_NAMESPACE=0
20       #<toolset>gcc-mw:<link>static
21       #<toolset>gcc-mingw:<link>static
22       <toolset>gcc-cygwin:<link>static
23     ;
24
25 #
26 # rule for simple regex test programs:
27 #
28 rule regex-test ( name : sources + : requirements * : input-files * )
29 {
30     return [ run $(sources) ../build//boost_regex
31                :
32                : $(input-files)
33                : $(requirements)
34                : $(name) ] ;
35 }
36
37 R_SOURCE = 
38 basic_tests.cpp
39 main.cpp
40 test_alt.cpp
41 test_anchors.cpp
42 test_asserts.cpp
43 test_backrefs.cpp
44 test_deprecated.cpp
45 test_emacs.cpp
46 test_escapes.cpp
47 test_grep.cpp
48 test_locale.cpp
49 test_mfc.cpp
50 test_non_greedy_repeats.cpp
51 test_perl_ex.cpp
52 test_replace.cpp
53 test_sets.cpp
54 test_simple_repeats.cpp
55 test_tricky_cases.cpp
56 test_icu.cpp
57 test_unicode.cpp
58 test_overloads.cpp
59 test_operators.cpp
60 ;
61
62 lib boost_regex_recursive :    
63    ../src/c_regex_traits.cpp
64    ../src/cpp_regex_traits.cpp
65    ../src/cregex.cpp
66    ../src/fileiter.cpp
67    ../src/icu.cpp
68    ../src/instances.cpp
69    ../src/posix_api.cpp
70    ../src/regex.cpp
71    ../src/regex_debug.cpp
72    ../src/regex_raw_buffer.cpp
73    ../src/regex_traits_defaults.cpp
74    ../src/static_mutex.cpp
75    ../src/w32_regex_traits.cpp
76    ../src/wc_regex_traits.cpp
77    ../src/wide_posix_api.cpp
78    ../src/winstances.cpp 
79    ../src/usinstances.cpp 
80    ../build//icu_options
81     : 
82         <define>BOOST_REGEX_RECURSIVE=1
83              <link>shared:<define>BOOST_REGEX_DYN_LINK=1
84     : 
85     ;
86
87 local regress-sources = regress/$(R_SOURCE) ;
88
89 test-suite regex
90       : 
91       [ run regress/$(R_SOURCE) ../build//boost_regex ../build//icu_options
92         : # command line
93         : # input files
94         : # requirements
95         : regex_regress ]
96
97       [ run regress/$(R_SOURCE) ../build//boost_regex
98                                 ../../thread/build//boost_thread ../build//icu_options
99         : # command line
100         : # input files
101         : # requirements
102         <define>TEST_THREADS
103         : regex_regress_threaded ]
104
105       [ regex-test posix_api_check : c_compiler_checks/posix_api_check.c ]
106
107       [ compile c_compiler_checks/wide_posix_api_check.c 
108         : : wide_posix_api_check_c ]
109
110       [ regex-test posix_api_check_cpp : c_compiler_checks/posix_api_check.cpp ]
111
112       [ regex-test wide_posix_api_check_cpp 
113           : c_compiler_checks/wide_posix_api_check.cpp ]
114
115       [ run pathology/bad_expression_test.cpp
116             ../build//boost_regex
117       ]
118
119       [ run pathology/recursion_test.cpp
120             ../build//boost_regex
121       ]
122       
123       [ run named_subexpressions/named_subexpressions_test.cpp
124             ../build//boost_regex
125       ]
126       
127       [ run unicode/unicode_iterator_test.cpp ../build//boost_regex : : : release <define>TEST_UTF8 : unicode_iterator_test_utf8 ]
128       [ run unicode/unicode_iterator_test.cpp ../build//boost_regex : : : release <define>TEST_UTF16 : unicode_iterator_test_utf16 ]
129       [ run static_mutex/static_mutex_test.cpp
130             ../../thread/build//boost_thread ../build//boost_regex
131       ]
132       [ run object_cache/object_cache_test.cpp ../build//boost_regex
133       ]
134       
135       [ run config_info/regex_config_info.cpp 
136          ../build//boost_regex/<link>static 
137          : # command line
138          : # input files
139          : <test-info>always_show_run_output
140       ]
141       [ run config_info/regex_config_info.cpp ../build//boost_regex 
142         : # command line
143         : # input files
144         : <test-info>always_show_run_output
145         : regex_dll_config_info
146       ]    
147
148       [ run collate_info/collate_info.cpp ../build//boost_regex
149       : : : <test-info>always_show_run_output : test_collate_info ]
150
151
152       [ compile concepts/concept_check.cpp ../build//boost_regex
153       ]
154       [ compile concepts/icu_concept_check.cpp ../build//boost_regex
155       ]
156       
157      [ run
158     # sources
159     captures/captures_test.cpp
160     captures//boost_regex_extra
161  :  # additional args
162  :  # test-files
163  :  # requirements
164     <threading>multi
165     <define>BOOST_REGEX_MATCH_EXTRA=1
166     <define>BOOST_REGEX_NO_LIB=1
167  :  # test name
168     captures_test
169  ]
170
171 [ run regress/$(R_SOURCE) .//boost_regex_recursive
172                           ../build//icu_options
173   : # command line
174   : # input files
175   : # requirements
176     <define>BOOST_REGEX_RECURSIVE=1
177   : regex_regress_recursive ]
178
179 [ run regress/$(R_SOURCE) ./noeh_test//boost_regex_noeh
180                           ../build//icu_options
181   : # command line
182   : # input files
183   : # requirements
184     <define>BOOST_NO_EXCEPTIONS=1
185     <exception-handling>off
186     <link>static
187     <runtime-link>shared
188   : regex_regress_noeh ]
189
190 ;
191
192 compile test_consolidated.cpp ;
193
194 build-project ../example ;
195
196