From 0fec291b2812b2f3b2f80fbfeb483926f6e22b0a Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 17 Sep 2002 10:58:25 +0000 Subject: [PATCH] changes to use boost test system [SVN r15403] --- example/Jamfile | 195 ++++++++++++++++++++++++++---------------------- 1 file changed, 107 insertions(+), 88 deletions(-) diff --git a/example/Jamfile b/example/Jamfile index f66ebe2f..69ad5e71 100644 --- a/example/Jamfile +++ b/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 ../build/boost_regex$(SUFLIB) - : - ../../../ - BOOST_REGEX_NO_LIB=1 - BOOST_REGEX_STATIC_LINK=1 - : - release : timer/input_script.txt - ; - -unit-test jgrep : jgrep/jgrep.cpp jgrep/main.cpp - ../build/boost_regex$(SUFLIB) : + : ../../../ BOOST_REGEX_NO_LIB=1 BOOST_REGEX_STATIC_LINK=1 - : - release : + regex_timer + ; + +run jgrep/jgrep.cpp jgrep/main.cpp + ../build/boost_regex$(SUFLIB) + : -n boost/ ../../../boost/regex.hpp - ; - -unit-test credit_card_example : snippets/credit_card_example.cpp - ../build/boost_regex$(SUFLIB) - : - ../../../ - BOOST_REGEX_NO_LIB=1 - BOOST_REGEX_STATIC_LINK=1 - : - debug - ; - - -unit-test partial_regex_grep : snippets/partial_regex_grep.cpp - ../build/boost_regex$(SUFLIB) - : - ../../../ - BOOST_REGEX_NO_LIB=1 - BOOST_REGEX_STATIC_LINK=1 - : - debug : + : + ../../../ + BOOST_REGEX_NO_LIB=1 + BOOST_REGEX_STATIC_LINK=1 + : + jgrep + ; + +run snippets/credit_card_example.cpp + ../build/boost_regex$(SUFLIB) + : + : + : + ../../../ + BOOST_REGEX_NO_LIB=1 + BOOST_REGEX_STATIC_LINK=1 + : + credit_card_example + ; + + +run snippets/partial_regex_grep.cpp + ../build/boost_regex$(SUFLIB) + : ../index.htm - ; - -unit-test partial_regex_match : snippets/partial_regex_match.cpp - ../build/boost_regex$(SUFLIB) - : + : + : ../../../ BOOST_REGEX_NO_LIB=1 BOOST_REGEX_STATIC_LINK=1 - : - debug : + partial_regex_grep + ; + +run snippets/partial_regex_match.cpp + ../build/boost_regex$(SUFLIB) + : 1234-5678-8765-4 - ; - -unit-test regex_grep_example_1 : snippets/regex_grep_example_1.cpp - ../build/boost_regex$(SUFLIB) - : + : + : ../../../ BOOST_REGEX_NO_LIB=1 BOOST_REGEX_STATIC_LINK=1 - : - debug + : + partial_regex_match + ; + +run snippets/regex_grep_example_1.cpp + ../build/boost_regex$(SUFLIB) : ../../../boost/rational.hpp - ; - -unit-test regex_grep_example_2 : snippets/regex_grep_example_2.cpp - ../build/boost_regex$(SUFLIB) : + : ../../../ BOOST_REGEX_NO_LIB=1 BOOST_REGEX_STATIC_LINK=1 : - debug + regex_grep_example_1 + ; + +run snippets/regex_grep_example_2.cpp + ../build/boost_regex$(SUFLIB) : ../../../boost/rational.hpp - ; - -unit-test regex_grep_example_3 : snippets/regex_grep_example_3.cpp - ../build/boost_regex$(SUFLIB) : + : ../../../ BOOST_REGEX_NO_LIB=1 BOOST_REGEX_STATIC_LINK=1 : - debug + regex_grep_example_2 + ; + +run snippets/regex_grep_example_3.cpp + ../build/boost_regex$(SUFLIB) : ../../../boost/rational.hpp - ; - -unit-test regex_grep_example_4 : snippets/regex_grep_example_4.cpp - ../build/boost_regex$(SUFLIB) : + : ../../../ BOOST_REGEX_NO_LIB=1 BOOST_REGEX_STATIC_LINK=1 : - debug + regex_grep_example_3 + ; + +run snippets/regex_grep_example_4.cpp + ../build/boost_regex$(SUFLIB) : ../../../boost/rational.hpp - ; - -unit-test regex_match_example : snippets/regex_match_example.cpp - ../build/boost_regex$(SUFLIB) : + : ../../../ BOOST_REGEX_NO_LIB=1 BOOST_REGEX_STATIC_LINK=1 : - debug + regex_grep_example_4 + ; + +run snippets/regex_match_example.cpp + ../build/boost_regex$(SUFLIB) : -auto - ; - -unit-test regex_merge_example : snippets/regex_merge_example.cpp - ../build/boost_regex$(SUFLIB) : + : ../../../ BOOST_REGEX_NO_LIB=1 BOOST_REGEX_STATIC_LINK=1 : - debug + regex_match_example + ; + +run snippets/regex_merge_example.cpp + ../build/boost_regex$(SUFLIB) : ../../../boost/rational.hpp - ; - -unit-test regex_search_example : snippets/regex_search_example.cpp - ../build/boost_regex$(SUFLIB) : + : ../../../ BOOST_REGEX_NO_LIB=1 BOOST_REGEX_STATIC_LINK=1 : - debug + regex_merge_example + ; + +run snippets/regex_search_example.cpp + ../build/boost_regex$(SUFLIB) : ../../../boost/rational.hpp - ; - -unit-test regex_split_example_1 : snippets/regex_split_example_1.cpp - ../build/boost_regex$(SUFLIB) : + : ../../../ BOOST_REGEX_NO_LIB=1 BOOST_REGEX_STATIC_LINK=1 : - debug + regex_search_example + ; + +run snippets/regex_split_example_1.cpp + ../build/boost_regex$(SUFLIB) : -auto - ; - -unit-test regex_split_example_2 : snippets/regex_split_example_2.cpp - ../build/boost_regex$(SUFLIB) : + : ../../../ BOOST_REGEX_NO_LIB=1 BOOST_REGEX_STATIC_LINK=1 : - debug + regex_split_example_1 + ; + +run snippets/regex_split_example_2.cpp + ../build/boost_regex$(SUFLIB) : ../index.htm + : + : + ../../../ + BOOST_REGEX_NO_LIB=1 + 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 +