2003-10-07 10:34:27 +00:00
|
|
|
# copyright John Maddock 2003
|
2006-07-16 17:24:25 +00:00
|
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
|
|
# (See accompanying file LICENSE_1_0.txt or copy at
|
|
|
|
# http://www.boost.org/LICENSE_1_0.txt.
|
2003-10-07 10:34:27 +00:00
|
|
|
|
|
|
|
project
|
2007-10-17 17:15:53 +00:00
|
|
|
: requirements
|
|
|
|
<threading>multi
|
|
|
|
<link>shared:<define>BOOST_REGEX_DYN_LINK=1
|
|
|
|
<toolset>msvc-7.1:<define>TEST_MFC=1
|
|
|
|
<toolset>msvc-7.0:<define>TEST_MFC=1
|
|
|
|
# There are unidentified linker problems on these platforms:
|
|
|
|
<toolset>mipspro-7.4:<link>static
|
|
|
|
<toolset>sun-5.9:<link>static
|
2003-10-07 10:34:27 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
#
|
|
|
|
# rule for simple regex test programs:
|
|
|
|
#
|
|
|
|
rule regex-test ( name : sources + : requirements * : input-files * )
|
|
|
|
{
|
|
|
|
return [ run $(sources) ../build//boost_regex
|
|
|
|
:
|
|
|
|
: $(input-files)
|
|
|
|
: $(requirements)
|
|
|
|
: $(name) ] ;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
;
|
|
|
|
|
2005-05-20 15:35:44 +00:00
|
|
|
local regress-sources = regress/$(R_SOURCE) ;
|
2003-10-07 10:34:27 +00:00
|
|
|
|
|
|
|
test-suite regex
|
|
|
|
:
|
2007-10-20 09:20:30 +00:00
|
|
|
[ run regress/$(R_SOURCE) ../build//boost_regex ../build//icu_options
|
2006-02-08 10:26:25 +00:00
|
|
|
: # command line
|
|
|
|
: # input files
|
|
|
|
: # requirements
|
|
|
|
: regex_regress ]
|
|
|
|
|
2006-07-29 16:02:56 +00:00
|
|
|
[ run regress/$(R_SOURCE) ../build//boost_regex
|
2007-10-20 09:20:30 +00:00
|
|
|
../../thread/build//boost_thread ../build//icu_options
|
2006-07-29 16:02:56 +00:00
|
|
|
: # command line
|
|
|
|
: # input files
|
|
|
|
: # requirements
|
|
|
|
<define>TEST_THREADS
|
|
|
|
: regex_regress_threaded ]
|
|
|
|
|
2006-02-08 10:26:25 +00:00
|
|
|
[ regex-test posix_api_check : c_compiler_checks/posix_api_check.c ]
|
|
|
|
|
|
|
|
[ compile c_compiler_checks/wide_posix_api_check.c
|
|
|
|
: : wide_posix_api_check_c ]
|
|
|
|
|
|
|
|
[ regex-test posix_api_check_cpp : c_compiler_checks/posix_api_check.cpp ]
|
|
|
|
|
|
|
|
[ regex-test wide_posix_api_check_cpp
|
|
|
|
: c_compiler_checks/wide_posix_api_check.cpp ]
|
2005-01-13 17:06:21 +00:00
|
|
|
|
|
|
|
[ run pathology/bad_expression_test.cpp
|
2005-05-20 15:35:44 +00:00
|
|
|
../build//boost_regex
|
2003-10-07 10:34:27 +00:00
|
|
|
]
|
|
|
|
|
2005-01-13 17:06:21 +00:00
|
|
|
[ run pathology/recursion_test.cpp
|
2005-05-20 15:35:44 +00:00
|
|
|
../build//boost_regex
|
2003-10-07 10:34:27 +00:00
|
|
|
]
|
2005-01-13 17:06:21 +00:00
|
|
|
|
2009-05-07 09:46:51 +00:00
|
|
|
[ run named_subexpressions/named_subexpressions_test.cpp
|
|
|
|
../build//boost_regex
|
|
|
|
]
|
|
|
|
|
2005-01-13 17:06:21 +00:00
|
|
|
[ run unicode/unicode_iterator_test.cpp ../build//boost_regex ]
|
|
|
|
[ run static_mutex/static_mutex_test.cpp
|
|
|
|
../../thread/build//boost_thread ../build//boost_regex
|
2003-10-07 10:34:27 +00:00
|
|
|
]
|
2005-01-13 17:06:21 +00:00
|
|
|
[ run object_cache/object_cache_test.cpp ../build//boost_regex
|
2003-10-07 10:34:27 +00:00
|
|
|
]
|
2005-01-13 17:06:21 +00:00
|
|
|
|
2006-02-08 12:02:22 +00:00
|
|
|
[ run config_info/regex_config_info.cpp
|
|
|
|
../build//boost_regex/<link>static
|
|
|
|
: # command line
|
|
|
|
: # input files
|
|
|
|
: <test-info>always_show_run_output
|
|
|
|
]
|
|
|
|
[ run config_info/regex_config_info.cpp ../build//boost_regex
|
|
|
|
: # command line
|
|
|
|
: # input files
|
|
|
|
: <test-info>always_show_run_output
|
|
|
|
: regex_dll_config_info
|
|
|
|
]
|
|
|
|
|
2006-02-08 10:26:25 +00:00
|
|
|
[ run collate_info/collate_info.cpp ../build//boost_regex
|
2006-06-07 16:38:23 +00:00
|
|
|
: : : <test-info>always_show_run_output : test_collate_info ]
|
2006-02-08 10:26:25 +00:00
|
|
|
|
2003-10-07 10:34:27 +00:00
|
|
|
|
2005-01-13 17:06:21 +00:00
|
|
|
[ compile concepts/concept_check.cpp ../build//boost_regex
|
2003-10-07 10:34:27 +00:00
|
|
|
]
|
2005-01-13 17:06:21 +00:00
|
|
|
[ compile concepts/icu_concept_check.cpp ../build//boost_regex
|
2004-06-11 11:54:08 +00:00
|
|
|
]
|
2005-01-13 17:06:21 +00:00
|
|
|
|
|
|
|
[ run
|
|
|
|
# sources
|
|
|
|
captures/captures_test.cpp
|
|
|
|
captures//boost_regex_extra
|
|
|
|
: # additional args
|
|
|
|
: # test-files
|
|
|
|
: # requirements
|
|
|
|
<threading>multi
|
|
|
|
<define>BOOST_REGEX_MATCH_EXTRA=1
|
|
|
|
<define>BOOST_REGEX_NO_LIB=1
|
|
|
|
: # test name
|
|
|
|
captures_test
|
|
|
|
]
|
|
|
|
;
|
2006-06-07 16:38:23 +00:00
|
|
|
|
2006-07-16 17:24:25 +00:00
|
|
|
|