changes to use boost test system

[SVN r15403]
This commit is contained in:
John Maddock
2002-09-17 10:58:25 +00:00
parent 6ee955be5f
commit 0fec291b28

View File

@ -1,171 +1,189 @@
subproject libs/regex/example ; subproject libs/regex/example ;
# bring in the rules for testing
SEARCH on testing.jam = $(BOOST_BUILD_PATH) ;
include testing.jam ;
unit-test timer : timer/regex_timer.cpp run timer/regex_timer.cpp
<lib>../build/boost_regex$(SUFLIB) <lib>../build/boost_regex$(SUFLIB)
:
<sysinclude>../../../
<define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1
:
release
: :
timer/input_script.txt timer/input_script.txt
; :
unit-test jgrep : jgrep/jgrep.cpp jgrep/main.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
<sysinclude>../../../ <sysinclude>../../../
<define>BOOST_REGEX_NO_LIB=1 <define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1 <define>BOOST_REGEX_STATIC_LINK=1
: :
release regex_timer
;
run jgrep/jgrep.cpp jgrep/main.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
-n boost/ ../../../boost/regex.hpp -n boost/ ../../../boost/regex.hpp
; :
unit-test credit_card_example : snippets/credit_card_example.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
<sysinclude>../../../ <sysinclude>../../../
<define>BOOST_REGEX_NO_LIB=1 <define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1 <define>BOOST_REGEX_STATIC_LINK=1
: :
debug jgrep
; ;
run snippets/credit_card_example.cpp
unit-test partial_regex_grep : snippets/partial_regex_grep.cpp
<lib>../build/boost_regex$(SUFLIB) <lib>../build/boost_regex$(SUFLIB)
:
:
: :
<sysinclude>../../../ <sysinclude>../../../
<define>BOOST_REGEX_NO_LIB=1 <define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1 <define>BOOST_REGEX_STATIC_LINK=1
: :
debug credit_card_example
;
run snippets/partial_regex_grep.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
../index.htm ../index.htm
; :
unit-test partial_regex_match : snippets/partial_regex_match.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
<sysinclude>../../../ <sysinclude>../../../
<define>BOOST_REGEX_NO_LIB=1 <define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1 <define>BOOST_REGEX_STATIC_LINK=1
: :
debug partial_regex_grep
;
run snippets/partial_regex_match.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
1234-5678-8765-4 1234-5678-8765-4
; :
unit-test regex_grep_example_1 : snippets/regex_grep_example_1.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
<sysinclude>../../../ <sysinclude>../../../
<define>BOOST_REGEX_NO_LIB=1 <define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1 <define>BOOST_REGEX_STATIC_LINK=1
: :
debug partial_regex_match
;
run snippets/regex_grep_example_1.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
../../../boost/rational.hpp ../../../boost/rational.hpp
; :
unit-test regex_grep_example_2 : snippets/regex_grep_example_2.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
<sysinclude>../../../ <sysinclude>../../../
<define>BOOST_REGEX_NO_LIB=1 <define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1 <define>BOOST_REGEX_STATIC_LINK=1
: :
debug regex_grep_example_1
;
run snippets/regex_grep_example_2.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
../../../boost/rational.hpp ../../../boost/rational.hpp
; :
unit-test regex_grep_example_3 : snippets/regex_grep_example_3.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
<sysinclude>../../../ <sysinclude>../../../
<define>BOOST_REGEX_NO_LIB=1 <define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1 <define>BOOST_REGEX_STATIC_LINK=1
: :
debug regex_grep_example_2
;
run snippets/regex_grep_example_3.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
../../../boost/rational.hpp ../../../boost/rational.hpp
; :
unit-test regex_grep_example_4 : snippets/regex_grep_example_4.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
<sysinclude>../../../ <sysinclude>../../../
<define>BOOST_REGEX_NO_LIB=1 <define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1 <define>BOOST_REGEX_STATIC_LINK=1
: :
debug regex_grep_example_3
;
run snippets/regex_grep_example_4.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
../../../boost/rational.hpp ../../../boost/rational.hpp
; :
unit-test regex_match_example : snippets/regex_match_example.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
<sysinclude>../../../ <sysinclude>../../../
<define>BOOST_REGEX_NO_LIB=1 <define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1 <define>BOOST_REGEX_STATIC_LINK=1
: :
debug regex_grep_example_4
;
run snippets/regex_match_example.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
-auto -auto
; :
unit-test regex_merge_example : snippets/regex_merge_example.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
<sysinclude>../../../ <sysinclude>../../../
<define>BOOST_REGEX_NO_LIB=1 <define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1 <define>BOOST_REGEX_STATIC_LINK=1
: :
debug regex_match_example
;
run snippets/regex_merge_example.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
../../../boost/rational.hpp ../../../boost/rational.hpp
; :
unit-test regex_search_example : snippets/regex_search_example.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
<sysinclude>../../../ <sysinclude>../../../
<define>BOOST_REGEX_NO_LIB=1 <define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1 <define>BOOST_REGEX_STATIC_LINK=1
: :
debug regex_merge_example
;
run snippets/regex_search_example.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
../../../boost/rational.hpp ../../../boost/rational.hpp
; :
unit-test regex_split_example_1 : snippets/regex_split_example_1.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
<sysinclude>../../../ <sysinclude>../../../
<define>BOOST_REGEX_NO_LIB=1 <define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1 <define>BOOST_REGEX_STATIC_LINK=1
: :
debug regex_search_example
;
run snippets/regex_split_example_1.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
-auto -auto
; :
unit-test regex_split_example_2 : snippets/regex_split_example_2.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
<sysinclude>../../../ <sysinclude>../../../
<define>BOOST_REGEX_NO_LIB=1 <define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1 <define>BOOST_REGEX_STATIC_LINK=1
: :
debug regex_split_example_1
;
run snippets/regex_split_example_2.cpp
<lib>../build/boost_regex$(SUFLIB)
: :
../index.htm ../index.htm
:
:
<sysinclude>../../../
<define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1
:
regex_split_example_2
; ;
@ -177,3 +195,4 @@ unit-test regex_split_example_2 : snippets/regex_split_example_2.cpp