mirror of
https://github.com/boostorg/regex.git
synced 2025-07-24 09:37:36 +02:00
changes to use boost test system
[SVN r15403]
This commit is contained in:
195
example/Jamfile
195
example/Jamfile
@ -1,171 +1,189 @@
|
||||
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)
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=1
|
||||
<define>BOOST_REGEX_STATIC_LINK=1
|
||||
:
|
||||
release
|
||||
:
|
||||
timer/input_script.txt
|
||||
;
|
||||
|
||||
unit-test jgrep : jgrep/jgrep.cpp jgrep/main.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=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
|
||||
;
|
||||
|
||||
unit-test credit_card_example : snippets/credit_card_example.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=1
|
||||
<define>BOOST_REGEX_STATIC_LINK=1
|
||||
:
|
||||
debug
|
||||
;
|
||||
|
||||
|
||||
unit-test partial_regex_grep : snippets/partial_regex_grep.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=1
|
||||
<define>BOOST_REGEX_STATIC_LINK=1
|
||||
:
|
||||
debug
|
||||
:
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=1
|
||||
<define>BOOST_REGEX_STATIC_LINK=1
|
||||
:
|
||||
jgrep
|
||||
;
|
||||
|
||||
run snippets/credit_card_example.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
:
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=1
|
||||
<define>BOOST_REGEX_STATIC_LINK=1
|
||||
:
|
||||
credit_card_example
|
||||
;
|
||||
|
||||
|
||||
run snippets/partial_regex_grep.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
../index.htm
|
||||
;
|
||||
|
||||
unit-test partial_regex_match : snippets/partial_regex_match.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
:
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=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
|
||||
;
|
||||
|
||||
unit-test regex_grep_example_1 : snippets/regex_grep_example_1.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
:
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=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
|
||||
;
|
||||
|
||||
unit-test regex_grep_example_2 : snippets/regex_grep_example_2.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=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
|
||||
;
|
||||
|
||||
unit-test regex_grep_example_3 : snippets/regex_grep_example_3.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=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
|
||||
;
|
||||
|
||||
unit-test regex_grep_example_4 : snippets/regex_grep_example_4.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=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
|
||||
;
|
||||
|
||||
unit-test regex_match_example : snippets/regex_match_example.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=1
|
||||
<define>BOOST_REGEX_STATIC_LINK=1
|
||||
:
|
||||
debug
|
||||
regex_grep_example_4
|
||||
;
|
||||
|
||||
run snippets/regex_match_example.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
-auto
|
||||
;
|
||||
|
||||
unit-test regex_merge_example : snippets/regex_merge_example.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=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
|
||||
;
|
||||
|
||||
unit-test regex_search_example : snippets/regex_search_example.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=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
|
||||
;
|
||||
|
||||
unit-test regex_split_example_1 : snippets/regex_split_example_1.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=1
|
||||
<define>BOOST_REGEX_STATIC_LINK=1
|
||||
:
|
||||
debug
|
||||
regex_search_example
|
||||
;
|
||||
|
||||
run snippets/regex_split_example_1.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
-auto
|
||||
;
|
||||
|
||||
unit-test regex_split_example_2 : snippets/regex_split_example_2.cpp
|
||||
<lib>../build/boost_regex$(SUFLIB)
|
||||
:
|
||||
:
|
||||
<sysinclude>../../../
|
||||
<define>BOOST_REGEX_NO_LIB=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
|
||||
:
|
||||
:
|
||||
<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
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user