File: Jamfile

package info (click to toggle)
boost 1.32.0-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 93,952 kB
  • ctags: 128,458
  • sloc: cpp: 492,477; xml: 52,125; python: 13,519; ansic: 13,013; sh: 1,773; yacc: 853; makefile: 526; perl: 418; lex: 110; csh: 6
file content (165 lines) | stat: -rw-r--r-- 4,121 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# copyright John Maddock 2003

subproject libs/regex/test ;

# bring in the rules for testing
import testing ;
subinclude libs/regex/test/captures ;

#
# this template defines the options common to
# all regex tests:
#
template test 
   : <template>../build/regex-options 
     <lib>../build/boost_regex            # sources
   : <threading>multi
   ;
 
#
# this template defines the options common to
# all builds of the test/regression program:
#
template regression
    : <template>test                    # sources
      regress/parse.cpp
      regress/regress.cpp 
      regress/tests.cpp
      <lib>../../test/build/boost_prg_exec_monitor
    ;

#
# rule for simple regex test programs:
#
rule regex-test ( name : sources + : requirements * : input-files * )
{
    return [ run $(sources)
               :
               : $(input-files)
               : $(requirements)
               : $(name) ] ;
}

#
# this template defines the options common to
# all regex dll tests:
#
template test-dll 
   : <template>../build/regex-dll-options 
     <dll>../build/boost_regex            # sources
   : <threading>multi
   ;
 
#
# this template defines the options common to
# all builds of the test/regression program:
#
template regression-dll
    : <template>test-dll                    # sources
      regress/parse.cpp
      regress/regress.cpp 
      regress/tests.cpp
      <lib>../../test/build/boost_prg_exec_monitor
    ;

test-suite regex
      : 
      [ regex-test regex_regress
          : <template>regression     # sources
          :                          # requirements
          : regress/tests.txt        # input files
      ]

      [ regex-test regex_wide_regress
          : <template>regression     # sources
            <template>../build/msvc-stlport-tricky
          : <define>TEST_UNICODE=1   # requirements
          : regress/tests.txt        # input files
      ]

      [ regex-test posix_api_check
          : <template>test                      # sources
            c_compiler_checks/posix_api_check.c
      ]

      [ compile <template>test c_compiler_checks/wide_posix_api_check.c 
          : : wide_posix_api_check_c ]

      [ regex-test posix_api_check_cpp
          : <template>test                      # sources
            c_compiler_checks/posix_api_check.cpp
      ]

      [ regex-test wide_posix_api_check_cpp
          : <template>test                      # sources
            c_compiler_checks/wide_posix_api_check.cpp
      ]

      [ regex-test bad_expression_test
          : <template>test                      # sources
            pathology/bad_expression_test.cpp
            <lib>../../test/build/boost_test_exec_monitor
      ]

      [ regex-test recursion_test
          : <template>test                      # sources
            pathology/recursion_test.cpp
            <lib>../../test/build/boost_test_exec_monitor
      ]
      
      [ run config_info/regex_config_info.cpp <template>test 
      : : : <test-info>always_show_run_output ]

      [ run config_info/regex_config_info.cpp <template>test 
      : : : <test-info>always_show_run_output
      : regex_dll_config_info ]

      [ regex-test regex_regress_dll
          : <template>regression-dll     # sources
          :                          # requirements
          : regress/tests.txt        # input files
      ]

      [ regex-test regex_wide_regress_dll
          : <template>regression-dll     # sources
            <template>../build/msvc-stlport-tricky
          : <define>TEST_UNICODE=1   # requirements
          : regress/tests.txt        # input files
      ]

      [ compile concepts/concept_check.cpp
      ]
      [ compile concepts/wide_concept_check.cpp
      ]
      
     [ run
    # sources
    captures/captures_test.cpp
    <template>../build/regex-options
    # dependencies
    <lib>captures/boost_regex_extra
    <lib>../../test/build/boost_test_exec_monitor
 :  # additional args
 :  # test-files
 :  # requirements
    <threading>multi
    <define>BOOST_REGEX_MATCH_EXTRA=1
    <define>BOOST_REGEX_NO_LIB=1
 :  # test name
    captures_test
 ]

;