Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

added boost

File size: 3.8 KB
Line 
1# copyright John Maddock 2003
2
3subproject libs/regex/example ;
4
5# bring in the rules for testing
6import testing  ;
7
8#
9# test for MFC by looking inside VC++ include directories:
10#
11if ! $(gMFC_CHECK)
12{
13   gMFC_CHECK = true ;
14   if $(VS71COMNTOOLS)
15   {
16      VS71COMNTOOLS = $(VS71COMNTOOLS:J=" ") ;
17      if [ GLOB $(VS71COMNTOOLS)..\\..\\VC7\\atlmfc\\include : cstringt.h ]
18      {
19         ECHO MFC/ATL regex wrappers will be tested when building with VC7.1 ;
20         REGEX_MFC_OPTS += "<vc-7_1><*><define>TEST_MFC=1" ;
21      }
22   }
23   if $(VSCOMNTOOLS)
24   {
25      VSCOMNTOOLS = $(VSCOMNTOOLS:J=" ") ;
26      if [ GLOB $(VSCOMNTOOLS)\\..\\..\\VC7\\atlmfc\\include : cstringt.h ]
27      {
28         ECHO MFC/ATL regex wrappers will be tested when building with VC7 ;
29         REGEX_MFC_OPTS += "<vc7><*><define>TEST_MFC=1" ;
30         REGEX_MFC_OPTS += "<vc7-stlport><*><define>TEST_MFC=1" ;
31         REGEX_MFC_OPTS += "<vc-7_0><*><define>TEST_MFC=1" ;
32         REGEX_MFC_OPTS += "<vc-7_0-stlport><*><define>TEST_MFC=1" ;
33      }
34   }
35   if $(VS80COMNTOOLS)
36   {
37      VS80COMNTOOLS = $(VS80COMNTOOLS:J=" ") ;
38      if [ GLOB $(VS80COMNTOOLS)..\\..\\VC8\\atlmfc\\include : cstringt.h ]
39      {
40         ECHO MFC/ATL regex wrappers will be tested when building with VC8 ;
41         REGEX_MFC_OPTS += "<vc-8_0><*><define>TEST_MFC=1" ;
42      }
43   }
44}
45
46rule regex-test-run ( sources + : input * : requirements * )
47{
48        return [
49           run
50             # sources
51             $(sources)
52             <template>../build/regex-test-options
53
54             # dependencies
55             <lib>../build/boost_regex
56         :  # additional args
57            $(input)
58         :  # test-files
59         :  # requirements
60         <threading>multi
61         $(REGEX_MFC_OPTS)
62         $(requirements)
63         :  # test name
64        ] ;
65}
66
67test-suite regex-examples :
68
69[ regex-test-run timer/regex_timer.cpp <template>../build/msvc-stlport-tricky : $(BOOST_ROOT)/libs/regex/example/timer/input_script.txt ]
70[ regex-test-run grep/grep.cpp <lib>../../program_options/build/boost_program_options : -n -b $(BOOST_ROOT)/boost/regex.hpp $(BOOST_ROOT)/boost/type_traits.hpp : std::locale-support ]
71[ regex-test-run snippets/credit_card_example.cpp ]
72[ regex-test-run snippets/mfc_example.cpp ]
73[ regex-test-run snippets/icu_example.cpp ]
74[ regex-test-run snippets/partial_regex_grep.cpp : $(BOOST_ROOT)/libs/regex/index.htm ]
75[ regex-test-run snippets/partial_regex_match.cpp : 1234-5678-8765-4 ]
76[ regex-test-run snippets/regex_grep_example_1.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
77[ regex-test-run snippets/regex_grep_example_2.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
78[ regex-test-run snippets/regex_grep_example_3.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
79[ regex-test-run snippets/regex_grep_example_4.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
80[ regex-test-run snippets/regex_match_example.cpp : -auto ]
81[ regex-test-run snippets/regex_merge_example.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
82[ regex-test-run snippets/regex_replace_example.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
83[ regex-test-run snippets/regex_search_example.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
84[ regex-test-run snippets/regex_split_example_1.cpp : -auto ]
85[ regex-test-run snippets/regex_split_example_2.cpp : $(BOOST_ROOT)/libs/regex/doc/index.html ]
86[ regex-test-run snippets/regex_token_iterator_eg_1.cpp : -auto ]
87[ regex-test-run snippets/regex_token_iterator_eg_2.cpp : $(BOOST_ROOT)/libs/regex/doc/index.html ]
88[ regex-test-run snippets/regex_iterator_example.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
89
90[ run
91    # sources
92    snippets/captures_example.cpp
93    <template>../build/regex-options
94    # dependencies
95    <lib>../test/captures/boost_regex_extra
96 :  # additional args
97 :  # test-files
98 :  # requirements
99    <threading>multi
100    <define>BOOST_REGEX_MATCH_EXTRA=1
101    <define>BOOST_REGEX_NO_LIB=1
102 :  # test name
103    captures_example
104 ]
105
106
107;
108
109
110
111
112
113
114
115
116
117
Note: See TracBrowser for help on using the repository browser.