summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/wave/test/build/Jamfile.v2
blob: ddbd5d666602f510713da92903e6cc44aba9b632 (plain)
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
166
167
168
169
170
171
172
173
174
175
176
177
# Boost.Wave: A Standard compliant C++ preprocessor library
#
# Boost Wave Library Test Jamfile
#
# http://www.boost.org/
#
# Copyright (c) 2001-2011 Hartmut Kaiser. Distributed under the Boost 
# Software License, Version 1.0. (See accompanying file 
# LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)


#
# These are the sources to compile for the testwave application
#
SOURCES_STATIC = testwave testwave_app
    ;
    
SOURCES_DYNAMIC = testwave_dll testwave_app_dll
    ;

SOURCES = $(SOURCE_STATIC) $(SOURCES_DYNAMIC)
    ;
    
path-constant TESTWAVE_DIR : $(BOOST_ROOT)/libs/wave/test/testwave/testfiles 
    ;

#
# This are the arguments for the testwave executable
#
TESTWAVE_ARGUMENTS = 
        -d4                              # use -d4 for verbose results 
        --hooks=1                        # test hooks as well
        -S$(TESTWAVE_DIR) 
        -S$(BOOST_ROOT) -I$(BOOST_ROOT)
    ;

#
# These are the names of the different unit tests to run
#
TESTWAVE_FILES = test.cfg
    ;

project wave/test
    ;

for local source in $(SOURCES)
{
    local requirements ;
    requirements += <toolset-msvc:version>7.1:<rtti>off ; # workaround for compiler bug
    requirements += <toolset-msvc:version>7.1_stlport4:<rtti>off ; 
    obj $(source) : ../testwave/$(source).cpp : $(requirements) ;
}

#
# Wave test suite
#
test-suite wave
    : 
        [   
            run
            # sources
                ../testwave/$(SOURCES_DYNAMIC).cpp
                /boost/wave//boost_wave 
                /boost/program_options//boost_program_options
                /boost/filesystem//boost_filesystem    
                /boost/system//boost_system    
                /boost/thread//boost_thread
                /boost/date_time//boost_date_time
            :
            # arguments
                $(TESTWAVE_ARGUMENTS) 
                --config-file $(TESTWAVE_DIR)/$(TESTWAVE_FILES)
            :
            # input files
            :
            # requirements
                <threading>multi
                <variant>debug
                <link>shared:<define>BOOST_ALL_DYN_LINK=1
                <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
                <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
#                <define>BOOST_LIB_DIAGNOSTIC=1
            :    
            # name
                testwave_dll
        ]

        [   
            run
            # sources
                ../testwave/$(SOURCES_STATIC).cpp
                /boost/wave//boost_wave/<link>static
                /boost/program_options//boost_program_options/<link>static
                /boost/filesystem//boost_filesystem/<link>static
                /boost/system//boost_system/<link>static
                /boost/thread//boost_thread/<link>static
                /boost/date_time//boost_date_time/<link>static
            :
            # arguments
                $(TESTWAVE_ARGUMENTS) 
                --config-file $(TESTWAVE_DIR)/$(TESTWAVE_FILES)
            :
            # input files
            : 
            # requirements
                <threading>multi
                <variant>debug
                <link>static     # Linking to DLL tested by testwave_dll
                <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
                <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
#                <define>BOOST_LIB_DIAGNOSTIC=1
            : 
            # name
                testwave
        ]

        # test the Slex wave lexing component
        [   
            run
            # sources
                ../testlexers/test_slex_lexer.cpp
                /boost/wave//boost_wave
                /boost/program_options//boost_program_options
                /boost/filesystem//boost_filesystem
                /boost/thread//boost_thread
                /boost/system//boost_system
                /boost/date_time//boost_date_time
            :
            # arguments
            :
            # input files
            :
            # requirements
                <threading>multi
                <variant>debug
                <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
                <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
            :
            # name
                test_slex_lexer
        ]
        # test the Re2C wave lexing component
        [   
            run
            # sources
                ../testlexers/test_re2c_lexer.cpp
                /boost/wave//boost_wave
                /boost/program_options//boost_program_options
                /boost/filesystem//boost_filesystem
                /boost/thread//boost_thread
                /boost/system//boost_system
                /boost/date_time//boost_date_time
            :
            # arguments
            :
            # input files
            :
            # requirements
                <threading>multi
                <variant>debug
                <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
                <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
            :
            # name
                test_re2c_lexer
        ]

        [
            run
            # sources
                ../testwave/quick.cpp
                /boost/wave//boost_wave
                /boost/thread//boost_thread
                /boost/filesystem//boost_filesystem
        ]
    ;