Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/regex/test/Jamfile @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

File size: 5.5 KB
Line 
1# copyright John Maddock 2003
2
3subproject libs/regex/test ;
4
5# bring in the rules for testing
6import testing ;
7subinclude libs/regex/test/captures ;
8
9R_SOURCE =
10basic_tests.cpp
11main.cpp
12test_alt.cpp
13test_anchors.cpp
14test_asserts.cpp
15test_backrefs.cpp
16test_deprecated.cpp
17test_emacs.cpp
18test_escapes.cpp
19test_grep.cpp
20test_locale.cpp
21test_mfc.cpp
22test_non_greedy_repeats.cpp
23test_perl_ex.cpp
24test_replace.cpp
25test_sets.cpp
26test_simple_repeats.cpp
27test_tricky_cases.cpp
28test_icu.cpp
29test_unicode.cpp
30test_overloads.cpp
31test_operators.cpp
32;
33
34#
35# test for MFC by looking inside VC++ include directories:
36#
37if ! $(gMFC_CHECK)
38{
39   gMFC_CHECK = true ;
40   if $(VS71COMNTOOLS)
41   {
42      VS71COMNTOOLS = $(VS71COMNTOOLS:J=" ") ;
43      if [ GLOB $(VS71COMNTOOLS)..\\..\\VC7\\atlmfc\\include : cstringt.h ]
44      {
45         ECHO MFC/ATL regex wrappers will be tested when building with VC7.1 ;
46         REGEX_MFC_OPTS += "<vc-7_1><*><define>TEST_MFC=1" ;
47      }
48   }
49   if $(VSCOMNTOOLS)
50   {
51      VSCOMNTOOLS = $(VSCOMNTOOLS:J=" ") ;
52      if [ GLOB $(VSCOMNTOOLS)\\..\\..\\VC7\\atlmfc\\include : cstringt.h ]
53      {
54         ECHO MFC/ATL regex wrappers will be tested when building with VC7 ;
55         REGEX_MFC_OPTS += "<vc7><*><define>TEST_MFC=1" ;
56         REGEX_MFC_OPTS += "<vc7-stlport><*><define>TEST_MFC=1" ;
57         REGEX_MFC_OPTS += "<vc-7_0><*><define>TEST_MFC=1" ;
58         REGEX_MFC_OPTS += "<vc-7_0-stlport><*><define>TEST_MFC=1" ;
59      }
60   }
61   if $(VS80COMNTOOLS)
62   {
63      VS80COMNTOOLS = $(VS80COMNTOOLS:J=" ") ;
64      if [ GLOB $(VS80COMNTOOLS)..\\..\\VC8\\atlmfc\\include : cstringt.h ]
65      {
66         ECHO MFC/ATL regex wrappers will be tested when building with VC8 ;
67         REGEX_MFC_OPTS += "<vc-8_0><*><define>TEST_MFC=1" ;
68      }
69   }
70}
71
72#
73# this template defines the options common to
74# all regex tests:
75#
76template test
77   : <template>../build/regex-options
78     <template>../build/regex-test-options
79     <lib>../build/boost_regex            # sources
80   : <threading>multi
81     $(REGEX_MFC_OPTS)
82   ;
83 
84#
85# this template defines the options common to
86# all builds of the test/regression program:
87#
88template regression
89    : <template>test                    # sources
90      regress/$(R_SOURCE)
91    ;
92
93#
94# rule for simple regex test programs:
95#
96rule regex-test ( name : sources + : requirements * : input-files * )
97{
98    return [ run $(sources)
99               :
100               : $(input-files)
101               : $(requirements)
102               : $(name) ] ;
103}
104
105#
106# this template defines the options common to
107# all regex dll tests:
108#
109template test-dll
110   : <template>../build/regex-dll-options
111     <template>../build/regex-test-options
112     <dll>../build/boost_regex            # sources
113   : <threading>multi
114   ;
115 
116#
117# this template defines the options common to
118# all builds of the test/regression program:
119#
120template regression-dll
121    : <template>test-dll                    # sources
122      regress/$(R_SOURCE)
123    ;
124
125test-suite regex
126      :
127      [ regex-test regex_regress
128          : <template>regression     # sources
129          :                          # requirements
130          :                          # input files
131      ]
132
133      [ regex-test posix_api_check
134          : <template>test                      # sources
135            c_compiler_checks/posix_api_check.c
136      ]
137
138      [ compile <template>test c_compiler_checks/wide_posix_api_check.c
139          : : wide_posix_api_check_c ]
140
141      [ regex-test posix_api_check_cpp
142          : <template>test                      # sources
143            c_compiler_checks/posix_api_check.cpp
144      ]
145
146      [ regex-test wide_posix_api_check_cpp
147          : <template>test                      # sources
148            c_compiler_checks/wide_posix_api_check.cpp
149      ]
150
151      [ regex-test bad_expression_test
152          : <template>test                      # sources
153            pathology/bad_expression_test.cpp
154           
155      ]
156
157      [ regex-test recursion_test
158          : <template>test                      # sources
159            pathology/recursion_test.cpp
160           
161      ]
162     
163      [ run unicode/unicode_iterator_test.cpp ]
164     
165      [ regex-test static_mutex_test
166          : <template>test-dll                  # sources
167            static_mutex/static_mutex_test.cpp
168            <dll>../../thread/build/boost_thread
169          : <define>BOOST_THREAD_USE_DLL=1
170      ]
171      [ regex-test object_cache_test
172          : <template>test                      # sources
173            object_cache/object_cache_test.cpp
174      ]
175     
176      [ run config_info/regex_config_info.cpp <template>test
177      : : : <test-info>always_show_run_output ]
178
179      [ run config_info/regex_config_info.cpp <template>test
180      : : : <test-info>always_show_run_output
181      : regex_dll_config_info ]
182
183      [ run collate_info/collate_info.cpp <template>test
184      : : : <test-info>always_show_run_output ]
185     
186      [ regex-test regex_regress_dll
187          : <template>regression-dll     # sources
188          :                              # requirements
189          :                              # input files
190      ]
191
192      [ compile concepts/concept_check.cpp
193      ]
194      [ compile concepts/icu_concept_check.cpp
195      ]
196     
197     [ run
198    # sources
199    captures/captures_test.cpp
200    <template>../build/regex-options
201    # dependencies
202    <lib>captures/boost_regex_extra
203   
204 :  # additional args
205 :  # test-files
206 :  # requirements
207    <threading>multi
208    <define>BOOST_REGEX_MATCH_EXTRA=1
209    <define>BOOST_REGEX_NO_LIB=1
210 :  # test name
211    captures_test
212 ]
213
214;
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
Note: See TracBrowser for help on using the repository browser.