2003-05-24 11:13:26 +00:00
|
|
|
# copyright John Maddock 2003
|
|
|
|
|
2001-08-18 11:50:48 +00:00
|
|
|
subproject libs/regex/test ;
|
|
|
|
|
2003-01-11 11:52:19 +00:00
|
|
|
# bring in the rules for testing
|
2003-10-12 11:19:15 +00:00
|
|
|
import testing ;
|
2003-12-13 12:28:48 +00:00
|
|
|
subinclude libs/regex/test/captures ;
|
2003-07-26 11:22:17 +00:00
|
|
|
|
2005-01-13 17:06:21 +00:00
|
|
|
R_SOURCE =
|
|
|
|
basic_tests.cpp
|
|
|
|
main.cpp
|
|
|
|
test_alt.cpp
|
|
|
|
test_anchors.cpp
|
|
|
|
test_asserts.cpp
|
|
|
|
test_backrefs.cpp
|
|
|
|
test_deprecated.cpp
|
|
|
|
test_emacs.cpp
|
|
|
|
test_escapes.cpp
|
|
|
|
test_grep.cpp
|
|
|
|
test_locale.cpp
|
|
|
|
test_mfc.cpp
|
|
|
|
test_non_greedy_repeats.cpp
|
|
|
|
test_perl_ex.cpp
|
|
|
|
test_replace.cpp
|
|
|
|
test_sets.cpp
|
|
|
|
test_simple_repeats.cpp
|
|
|
|
test_tricky_cases.cpp
|
|
|
|
test_icu.cpp
|
|
|
|
test_unicode.cpp
|
|
|
|
test_overloads.cpp
|
|
|
|
test_operators.cpp
|
|
|
|
;
|
|
|
|
|
|
|
|
#
|
|
|
|
# test for MFC by looking inside VC++ include directories:
|
|
|
|
#
|
|
|
|
if ! $(gMFC_CHECK)
|
|
|
|
{
|
|
|
|
gMFC_CHECK = true ;
|
|
|
|
if $(VS71COMNTOOLS)
|
|
|
|
{
|
|
|
|
VS71COMNTOOLS = $(VS71COMNTOOLS:J=" ") ;
|
|
|
|
if [ GLOB $(VS71COMNTOOLS)..\\..\\VC7\\atlmfc\\include : cstringt.h ]
|
|
|
|
{
|
|
|
|
ECHO MFC/ATL regex wrappers will be tested when building with VC7.1 ;
|
|
|
|
REGEX_MFC_OPTS += "<vc-7_1><*><define>TEST_MFC=1" ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if $(VSCOMNTOOLS)
|
|
|
|
{
|
|
|
|
VSCOMNTOOLS = $(VSCOMNTOOLS:J=" ") ;
|
|
|
|
if [ GLOB $(VSCOMNTOOLS)\\..\\..\\VC7\\atlmfc\\include : cstringt.h ]
|
|
|
|
{
|
|
|
|
ECHO MFC/ATL regex wrappers will be tested when building with VC7 ;
|
|
|
|
REGEX_MFC_OPTS += "<vc7><*><define>TEST_MFC=1" ;
|
2005-06-09 00:52:17 +00:00
|
|
|
REGEX_MFC_OPTS += "<vc7-stlport><*><define>TEST_MFC=1" ;
|
|
|
|
REGEX_MFC_OPTS += "<vc-7_0><*><define>TEST_MFC=1" ;
|
|
|
|
REGEX_MFC_OPTS += "<vc-7_0-stlport><*><define>TEST_MFC=1" ;
|
2005-01-13 17:06:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if $(VS80COMNTOOLS)
|
|
|
|
{
|
|
|
|
VS80COMNTOOLS = $(VS80COMNTOOLS:J=" ") ;
|
|
|
|
if [ GLOB $(VS80COMNTOOLS)..\\..\\VC8\\atlmfc\\include : cstringt.h ]
|
|
|
|
{
|
|
|
|
ECHO MFC/ATL regex wrappers will be tested when building with VC8 ;
|
|
|
|
REGEX_MFC_OPTS += "<vc-8_0><*><define>TEST_MFC=1" ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2003-07-26 11:22:17 +00:00
|
|
|
#
|
|
|
|
# this template defines the options common to
|
|
|
|
# all regex tests:
|
|
|
|
#
|
2003-02-19 13:56:27 +00:00
|
|
|
template test
|
2003-10-12 11:19:15 +00:00
|
|
|
: <template>../build/regex-options
|
2005-01-13 17:06:21 +00:00
|
|
|
<template>../build/regex-test-options
|
2003-07-26 11:22:17 +00:00
|
|
|
<lib>../build/boost_regex # sources
|
|
|
|
: <threading>multi
|
2005-01-13 17:06:21 +00:00
|
|
|
$(REGEX_MFC_OPTS)
|
2003-07-26 11:22:17 +00:00
|
|
|
;
|
2003-02-19 13:56:27 +00:00
|
|
|
|
2003-07-26 11:22:17 +00:00
|
|
|
#
|
|
|
|
# this template defines the options common to
|
|
|
|
# all builds of the test/regression program:
|
|
|
|
#
|
2003-02-19 13:56:27 +00:00
|
|
|
template regression
|
|
|
|
: <template>test # sources
|
2005-01-13 17:06:21 +00:00
|
|
|
regress/$(R_SOURCE)
|
2003-02-19 13:56:27 +00:00
|
|
|
;
|
|
|
|
|
2003-07-26 11:22:17 +00:00
|
|
|
#
|
|
|
|
# rule for simple regex test programs:
|
|
|
|
#
|
2003-02-19 13:56:27 +00:00
|
|
|
rule regex-test ( name : sources + : requirements * : input-files * )
|
|
|
|
{
|
2003-06-03 20:07:02 +00:00
|
|
|
return [ run $(sources)
|
|
|
|
:
|
|
|
|
: $(input-files)
|
2003-07-26 11:22:17 +00:00
|
|
|
: $(requirements)
|
2003-06-03 20:07:02 +00:00
|
|
|
: $(name) ] ;
|
2003-02-19 13:56:27 +00:00
|
|
|
}
|
|
|
|
|
2003-07-26 11:22:17 +00:00
|
|
|
#
|
|
|
|
# this template defines the options common to
|
|
|
|
# all regex dll tests:
|
|
|
|
#
|
|
|
|
template test-dll
|
2003-10-12 11:19:15 +00:00
|
|
|
: <template>../build/regex-dll-options
|
2005-01-13 17:06:21 +00:00
|
|
|
<template>../build/regex-test-options
|
2003-07-26 11:22:17 +00:00
|
|
|
<dll>../build/boost_regex # sources
|
|
|
|
: <threading>multi
|
|
|
|
;
|
|
|
|
|
|
|
|
#
|
|
|
|
# this template defines the options common to
|
|
|
|
# all builds of the test/regression program:
|
|
|
|
#
|
|
|
|
template regression-dll
|
|
|
|
: <template>test-dll # sources
|
2005-01-13 17:06:21 +00:00
|
|
|
regress/$(R_SOURCE)
|
2003-07-26 11:22:17 +00:00
|
|
|
;
|
|
|
|
|
2003-02-19 13:56:27 +00:00
|
|
|
test-suite regex
|
|
|
|
:
|
2003-07-26 11:22:17 +00:00
|
|
|
[ regex-test regex_regress
|
2003-02-19 13:56:27 +00:00
|
|
|
: <template>regression # sources
|
|
|
|
: # requirements
|
2005-01-13 17:06:21 +00:00
|
|
|
: # input files
|
2003-02-19 13:56:27 +00:00
|
|
|
]
|
|
|
|
|
2003-07-26 11:22:17 +00:00
|
|
|
[ regex-test posix_api_check
|
2003-02-19 13:56:27 +00:00
|
|
|
: <template>test # sources
|
|
|
|
c_compiler_checks/posix_api_check.c
|
|
|
|
]
|
|
|
|
|
2003-07-30 20:43:35 +00:00
|
|
|
[ compile <template>test c_compiler_checks/wide_posix_api_check.c
|
|
|
|
: : wide_posix_api_check_c ]
|
2003-02-19 13:56:27 +00:00
|
|
|
|
2003-07-26 11:22:17 +00:00
|
|
|
[ regex-test posix_api_check_cpp
|
2003-02-19 13:56:27 +00:00
|
|
|
: <template>test # sources
|
|
|
|
c_compiler_checks/posix_api_check.cpp
|
|
|
|
]
|
|
|
|
|
2003-07-26 11:22:17 +00:00
|
|
|
[ regex-test wide_posix_api_check_cpp
|
2003-02-19 13:56:27 +00:00
|
|
|
: <template>test # sources
|
|
|
|
c_compiler_checks/wide_posix_api_check.cpp
|
|
|
|
]
|
2001-08-18 11:50:48 +00:00
|
|
|
|
2003-05-17 11:45:48 +00:00
|
|
|
[ regex-test bad_expression_test
|
|
|
|
: <template>test # sources
|
|
|
|
pathology/bad_expression_test.cpp
|
2005-05-20 15:35:44 +00:00
|
|
|
|
2003-05-17 11:45:48 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[ regex-test recursion_test
|
|
|
|
: <template>test # sources
|
|
|
|
pathology/recursion_test.cpp
|
2005-05-20 15:35:44 +00:00
|
|
|
|
2003-05-17 11:45:48 +00:00
|
|
|
]
|
2003-06-27 11:11:21 +00:00
|
|
|
|
2005-01-13 17:06:21 +00:00
|
|
|
[ run unicode/unicode_iterator_test.cpp ]
|
2005-02-19 11:42:04 +00:00
|
|
|
|
2005-01-13 17:06:21 +00:00
|
|
|
[ regex-test static_mutex_test
|
2005-02-19 11:42:04 +00:00
|
|
|
: <template>test-dll # sources
|
2005-01-13 17:06:21 +00:00
|
|
|
static_mutex/static_mutex_test.cpp
|
|
|
|
<dll>../../thread/build/boost_thread
|
2005-02-19 11:42:04 +00:00
|
|
|
: <define>BOOST_THREAD_USE_DLL=1
|
2005-01-13 17:06:21 +00:00
|
|
|
]
|
|
|
|
[ regex-test object_cache_test
|
|
|
|
: <template>test # sources
|
|
|
|
object_cache/object_cache_test.cpp
|
|
|
|
]
|
|
|
|
|
2003-07-26 11:22:17 +00:00
|
|
|
[ run config_info/regex_config_info.cpp <template>test
|
|
|
|
: : : <test-info>always_show_run_output ]
|
|
|
|
|
|
|
|
[ run config_info/regex_config_info.cpp <template>test
|
|
|
|
: : : <test-info>always_show_run_output
|
|
|
|
: regex_dll_config_info ]
|
|
|
|
|
2005-05-20 15:35:44 +00:00
|
|
|
[ run collate_info/collate_info.cpp <template>test
|
2005-01-22 16:32:01 +00:00
|
|
|
: : : <test-info>always_show_run_output ]
|
|
|
|
|
2003-07-26 11:22:17 +00:00
|
|
|
[ regex-test regex_regress_dll
|
|
|
|
: <template>regression-dll # sources
|
2005-01-13 17:06:21 +00:00
|
|
|
: # requirements
|
|
|
|
: # input files
|
2003-07-26 11:22:17 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[ compile concepts/concept_check.cpp
|
|
|
|
]
|
2005-01-13 17:06:21 +00:00
|
|
|
[ compile concepts/icu_concept_check.cpp
|
2003-06-27 11:11:21 +00:00
|
|
|
]
|
2003-12-13 12:28:48 +00:00
|
|
|
|
|
|
|
[ run
|
2003-12-26 23:26:49 +00:00
|
|
|
# sources
|
2003-12-13 12:28:48 +00:00
|
|
|
captures/captures_test.cpp
|
|
|
|
<template>../build/regex-options
|
|
|
|
# dependencies
|
|
|
|
<lib>captures/boost_regex_extra
|
2005-05-20 15:35:44 +00:00
|
|
|
|
2003-12-13 12:28:48 +00:00
|
|
|
: # additional args
|
|
|
|
: # test-files
|
|
|
|
: # requirements
|
|
|
|
<threading>multi
|
|
|
|
<define>BOOST_REGEX_MATCH_EXTRA=1
|
|
|
|
<define>BOOST_REGEX_NO_LIB=1
|
|
|
|
: # test name
|
|
|
|
captures_test
|
|
|
|
]
|
|
|
|
|
2003-01-11 11:52:19 +00:00
|
|
|
;
|
2002-12-28 12:51:48 +00:00
|
|
|
|
2003-01-21 12:21:35 +00:00
|
|
|
|
2003-05-17 11:45:48 +00:00
|
|
|
|
2003-06-27 11:11:21 +00:00
|
|
|
|
2003-10-12 11:19:15 +00:00
|
|
|
|
2003-12-07 13:09:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2003-12-13 12:28:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2004-09-28 14:56:13 +00:00
|
|
|
|
2005-01-13 17:06:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-02-19 11:42:04 +00:00
|
|
|
|
|
|
|
|