forked from boostorg/regex
Modified Jamfile to use testing.jam
[SVN r16868]
This commit is contained in:
221
example/Jamfile
221
example/Jamfile
@ -4,195 +4,42 @@ subproject libs/regex/example ;
|
|||||||
SEARCH on testing.jam = $(BOOST_BUILD_PATH) ;
|
SEARCH on testing.jam = $(BOOST_BUILD_PATH) ;
|
||||||
include testing.jam ;
|
include testing.jam ;
|
||||||
|
|
||||||
run timer/regex_timer.cpp
|
rule regex-test-run ( sources + : input * )
|
||||||
<lib>../build/boost_regex$(SUFLIB)
|
{
|
||||||
:
|
return [
|
||||||
timer/input_script.txt
|
run
|
||||||
:
|
# sources
|
||||||
:
|
$(sources)
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
regex_timer
|
|
||||||
;
|
|
||||||
|
|
||||||
run jgrep/jgrep.cpp jgrep/main.cpp
|
|
||||||
<lib>../build/boost_regex$(SUFLIB)
|
|
||||||
:
|
|
||||||
-n boost/ ../../../boost/regex.hpp
|
|
||||||
:
|
|
||||||
:
|
|
||||||
<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
|
|
||||||
:
|
|
||||||
:
|
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
partial_regex_grep
|
|
||||||
;
|
|
||||||
|
|
||||||
run snippets/partial_regex_match.cpp
|
|
||||||
<lib>../build/boost_regex$(SUFLIB)
|
|
||||||
:
|
|
||||||
1234-5678-8765-4
|
|
||||||
:
|
|
||||||
:
|
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
partial_regex_match
|
|
||||||
;
|
|
||||||
|
|
||||||
run snippets/regex_grep_example_1.cpp
|
|
||||||
<lib>../build/boost_regex$(SUFLIB)
|
|
||||||
:
|
|
||||||
../../../boost/rational.hpp
|
|
||||||
:
|
|
||||||
:
|
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
regex_grep_example_1
|
|
||||||
;
|
|
||||||
|
|
||||||
run snippets/regex_grep_example_2.cpp
|
|
||||||
<lib>../build/boost_regex$(SUFLIB)
|
|
||||||
:
|
|
||||||
../../../boost/rational.hpp
|
|
||||||
:
|
|
||||||
:
|
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
regex_grep_example_2
|
|
||||||
;
|
|
||||||
|
|
||||||
run snippets/regex_grep_example_3.cpp
|
|
||||||
<lib>../build/boost_regex$(SUFLIB)
|
|
||||||
:
|
|
||||||
../../../boost/rational.hpp
|
|
||||||
:
|
|
||||||
:
|
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
regex_grep_example_3
|
|
||||||
;
|
|
||||||
|
|
||||||
run snippets/regex_grep_example_4.cpp
|
|
||||||
<lib>../build/boost_regex$(SUFLIB)
|
|
||||||
:
|
|
||||||
../../../boost/rational.hpp
|
|
||||||
:
|
|
||||||
:
|
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
regex_grep_example_4
|
|
||||||
;
|
|
||||||
|
|
||||||
run snippets/regex_match_example.cpp
|
|
||||||
<lib>../build/boost_regex$(SUFLIB)
|
|
||||||
:
|
|
||||||
-auto
|
|
||||||
:
|
|
||||||
:
|
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
regex_match_example
|
|
||||||
;
|
|
||||||
|
|
||||||
run snippets/regex_merge_example.cpp
|
|
||||||
<lib>../build/boost_regex$(SUFLIB)
|
|
||||||
:
|
|
||||||
../../../boost/rational.hpp
|
|
||||||
:
|
|
||||||
:
|
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
regex_merge_example
|
|
||||||
;
|
|
||||||
|
|
||||||
run snippets/regex_search_example.cpp
|
|
||||||
<lib>../build/boost_regex$(SUFLIB)
|
|
||||||
:
|
|
||||||
../../../boost/rational.hpp
|
|
||||||
:
|
|
||||||
:
|
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
regex_search_example
|
|
||||||
;
|
|
||||||
|
|
||||||
run snippets/regex_split_example_1.cpp
|
|
||||||
<lib>../build/boost_regex$(SUFLIB)
|
|
||||||
:
|
|
||||||
-auto
|
|
||||||
:
|
|
||||||
:
|
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
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
|
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
<lib>../build/boost_regex
|
||||||
|
: # additional args
|
||||||
|
$(input)
|
||||||
|
: # test-files
|
||||||
|
: # requirements
|
||||||
|
<sysinclude>../../../
|
||||||
|
<define>BOOST_REGEX_NO_LIB=1
|
||||||
|
<define>BOOST_REGEX_STATIC_LINK=1
|
||||||
|
: # test name
|
||||||
|
] ;
|
||||||
|
}
|
||||||
|
|
||||||
|
test-suite regex-examples :
|
||||||
|
|
||||||
|
[ regex-test-run timer/regex_timer.cpp : timer/input_script.txt ]
|
||||||
|
[ regex-test-run jgrep/jgrep.cpp jgrep/main.cpp : -n boost/ ../../../boost/regex.hpp ]
|
||||||
|
[ regex-test-run snippets/credit_card_example.cpp ]
|
||||||
|
[ regex-test-run snippets/partial_regex_grep.cpp : ../index.htm ]
|
||||||
|
[ regex-test-run snippets/partial_regex_match.cpp : 1234-5678-8765-4 ]
|
||||||
|
[ regex-test-run snippets/regex_grep_example_1.cpp : ../../../boost/rational.hpp ]
|
||||||
|
[ regex-test-run snippets/regex_grep_example_2.cpp : ../../../boost/rational.hpp ]
|
||||||
|
[ regex-test-run snippets/regex_grep_example_3.cpp : ../../../boost/rational.hpp ]
|
||||||
|
[ regex-test-run snippets/regex_grep_example_4.cpp : ../../../boost/rational.hpp ]
|
||||||
|
[ regex-test-run snippets/regex_match_example.cpp : -auto ]
|
||||||
|
[ regex-test-run snippets/regex_merge_example.cpp : ../../../boost/rational.hpp ]
|
||||||
|
[ regex-test-run snippets/regex_search_example.cpp : ../../../boost/rational.hpp ]
|
||||||
|
[ regex-test-run snippets/regex_split_example_1.cpp : -auto ]
|
||||||
|
[ regex-test-run snippets/regex_split_example_2.cpp : ../index.htm ]
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
|
137
test/Jamfile
137
test/Jamfile
@ -1,5 +1,9 @@
|
|||||||
subproject libs/regex/test ;
|
subproject libs/regex/test ;
|
||||||
|
|
||||||
|
# bring in the rules for testing
|
||||||
|
SEARCH on testing.jam = $(BOOST_BUILD_PATH) ;
|
||||||
|
include testing.jam ;
|
||||||
|
|
||||||
local test-dir = $(BOOST_ROOT)$(SLASH)libs$(SLASH)regex$(SLASH)test$(SLASH)regress$(SLASH) ;
|
local test-dir = $(BOOST_ROOT)$(SLASH)libs$(SLASH)regex$(SLASH)test$(SLASH)regress$(SLASH) ;
|
||||||
|
|
||||||
local test-files = $(test-dir)tests.txt
|
local test-files = $(test-dir)tests.txt
|
||||||
@ -7,83 +11,68 @@ local test-files = $(test-dir)tests.txt
|
|||||||
# $(test-dir)test1252.txt
|
# $(test-dir)test1252.txt
|
||||||
;
|
;
|
||||||
|
|
||||||
unit-test regress : regress/parse.cpp regress/regress.cpp regress/tests.cpp
|
test-suite regex
|
||||||
<lib>../build/boost_regex$(SUFLIB) <lib>../../test/build/boost_prg_exec_monitor
|
: [ run regress/parse.cpp regress/regress.cpp regress/tests.cpp
|
||||||
:
|
<lib>../build/boost_regex
|
||||||
<sysinclude>../../../
|
<lib>../../test/build/boost_prg_exec_monitor
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
:
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
$(test-files)
|
||||||
:
|
:
|
||||||
debug
|
:
|
||||||
:
|
<define>BOOST_REGEX_NO_LIB=1
|
||||||
$(test-files)
|
<define>BOOST_REGEX_STATIC_LINK=1
|
||||||
;
|
:
|
||||||
|
regress ]
|
||||||
unit-test wregress : regress/parse.cpp regress/regress.cpp regress/tests.cpp
|
|
||||||
<lib>../build/boost_regex$(SUFLIB) <lib>../../test/build/boost_prg_exec_monitor
|
|
||||||
:
|
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>TEST_UNICODE=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
debug
|
|
||||||
:
|
|
||||||
$(test-files)
|
|
||||||
;
|
|
||||||
|
|
||||||
unit-test posix_api_check_c : c_compiler_checks/posix_api_check.c
|
|
||||||
<lib>../build/boost_regex$(SUFLIB) <lib>../../test/build/boost_prg_exec_monitor
|
|
||||||
:
|
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
debug
|
|
||||||
:
|
|
||||||
;
|
|
||||||
|
|
||||||
unit-test wide_posix_api_check_c : c_compiler_checks/wide_posix_api_check.c
|
|
||||||
<lib>../build/boost_regex$(SUFLIB) <lib>../../test/build/boost_prg_exec_monitor
|
|
||||||
:
|
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
debug
|
|
||||||
:
|
|
||||||
;
|
|
||||||
|
|
||||||
unit-test posix_api_check : c_compiler_checks/posix_api_check.cpp
|
|
||||||
<lib>../build/boost_regex$(SUFLIB) <lib>../../test/build/boost_prg_exec_monitor
|
|
||||||
:
|
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
debug
|
|
||||||
:
|
|
||||||
;
|
|
||||||
|
|
||||||
unit-test wide_posix_api_check : c_compiler_checks/wide_posix_api_check.cpp
|
|
||||||
<lib>../build/boost_regex$(SUFLIB) <lib>../../test/build/boost_prg_exec_monitor
|
|
||||||
:
|
|
||||||
<sysinclude>../../../
|
|
||||||
<define>BOOST_REGEX_NO_LIB=1
|
|
||||||
<define>BOOST_REGEX_STATIC_LINK=1
|
|
||||||
:
|
|
||||||
debug
|
|
||||||
:
|
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[ run regress/parse.cpp lregress/regress.cpp regress/tests.cpp
|
||||||
|
<lib>../build/boost_regex
|
||||||
|
<lib>../../test/build/boost_prg_exec_monitor
|
||||||
|
:
|
||||||
|
$(test-files)
|
||||||
|
:
|
||||||
|
:
|
||||||
|
<define>BOOST_REGEX_NO_LIB=1
|
||||||
|
<define>TEST_UNICODE=1
|
||||||
|
<define>BOOST_REGEX_STATIC_LINK=1
|
||||||
|
:
|
||||||
|
wregress ]
|
||||||
|
|
||||||
|
[ run c_compiler_checks/posix_api_check.c
|
||||||
|
<lib>../build/boost_regex
|
||||||
|
:
|
||||||
|
:
|
||||||
|
:
|
||||||
|
<define>BOOST_REGEX_NO_LIB=1
|
||||||
|
<define>BOOST_REGEX_STATIC_LINK=1
|
||||||
|
:
|
||||||
|
posix_api_check_c ]
|
||||||
|
|
||||||
|
[ run c_compiler_checks/wide_posix_api_check.c
|
||||||
|
<lib>../build/boost_regex
|
||||||
|
:
|
||||||
|
:
|
||||||
|
:
|
||||||
|
<define>BOOST_REGEX_NO_LIB=1
|
||||||
|
<define>BOOST_REGEX_STATIC_LINK=1
|
||||||
|
:
|
||||||
|
wide_posix_api_check_c ]
|
||||||
|
|
||||||
|
[ run c_compiler_checks/posix_api_check.cpp
|
||||||
|
<lib>../build/boost_regex
|
||||||
|
:
|
||||||
|
:
|
||||||
|
:
|
||||||
|
<define>BOOST_REGEX_NO_LIB=1
|
||||||
|
<define>BOOST_REGEX_STATIC_LINK=1
|
||||||
|
]
|
||||||
|
|
||||||
|
[ run c_compiler_checks/wide_posix_api_check.cpp
|
||||||
|
<lib>../build/boost_regex
|
||||||
|
:
|
||||||
|
:
|
||||||
|
:
|
||||||
|
<define>BOOST_REGEX_NO_LIB=1
|
||||||
|
<define>BOOST_REGEX_STATIC_LINK=1
|
||||||
|
]
|
||||||
|
;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user