[SVN r17531]
This commit is contained in:
Dave Abrahams
2003-02-19 13:56:27 +00:00
parent d0ba00a2e7
commit cebaf09b5d

View File

@ -4,82 +4,60 @@ subproject libs/regex/test ;
SEARCH on testing.jam = $(BOOST_BUILD_PATH) ; SEARCH on testing.jam = $(BOOST_BUILD_PATH) ;
include testing.jam ; include testing.jam ;
local test-dir = $(BOOST_ROOT)$(SLASH)libs$(SLASH)regex$(SLASH)test$(SLASH)regress$(SLASH) ; template test
: <lib>../build/boost_regex # sources
local test-files = $(test-dir)tests.txt : <define>BOOST_REGEX_NO_LIB=1 # requirements
# dwa -- not sure if this is generally applicable <define>BOOST_REGEX_STATIC_LINK=1
# $(test-dir)test1252.txt <threading>multi
; ;
template regression
: <template>test # sources
regress/parse.cpp
regress/regress.cpp
regress/tests.cpp
<lib>../../test/build/boost_prg_exec_monitor
;
rule regex-test ( name : sources + : requirements * : input-files * )
{
return [ run $(sources) : : $(input-files) : $(requirements) : $(name) ] ;
}
test-suite regex test-suite regex
: [ run regress/parse.cpp regress/regress.cpp regress/tests.cpp
<lib>../build/boost_regex
<lib>../../test/build/boost_prg_exec_monitor
: :
$(test-files) [ regex-test regress
: : <template>regression # sources
: : # requirements
<define>BOOST_REGEX_NO_LIB=1 : regress/tests.txt # input files
<define>BOOST_REGEX_STATIC_LINK=1
<threading>multi
:
regress ]
[ run regress/parse.cpp regress/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
<threading>multi
:
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
<threading>multi
:
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
<threading>multi
:
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
<threading>multi
] ]
[ run c_compiler_checks/wide_posix_api_check.cpp [ regex-test wregress
<lib>../build/boost_regex : <template>regression # sources
: : <define>TEST_UNICODE=1 # requirements
: : regress/tests.txt # input files
:
<define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1
<threading>multi
] ]
[ regex-test posix_api_check_c
: <template>test # sources
c_compiler_checks/posix_api_check.c
]
[ regex-test wide_posix_api_check_c
: <template>test # sources
c_compiler_checks/wide_posix_api_check.c
]
[ regex-test posix_api_check
: <template>test # sources
c_compiler_checks/posix_api_check.cpp
]
[ regex-test wide_posix_api_check
: <template>test # sources
c_compiler_checks/wide_posix_api_check.cpp
]
; ;