2003-10-07 10:34:27 +00:00
|
|
|
# copyright John Maddock 2003
|
2024-04-10 08:40:31 -05:00
|
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
|
|
# (See accompanying file LICENSE_1_0.txt or copy at
|
2006-07-16 17:24:25 +00:00
|
|
|
# http://www.boost.org/LICENSE_1_0.txt.
|
2003-10-07 10:34:27 +00:00
|
|
|
|
|
|
|
project
|
2024-04-10 08:40:31 -05:00
|
|
|
: requirements
|
2024-08-07 23:46:57 -05:00
|
|
|
<library>/boost/regex//boost_regex
|
2024-07-20 19:42:20 -05:00
|
|
|
<library>/boost/detail//boost_detail
|
2024-04-10 08:40:31 -05:00
|
|
|
<threading>multi
|
|
|
|
<link>shared:<define>BOOST_REGEX_DYN_LINK=1
|
|
|
|
<toolset>msvc-7.1:<define>TEST_MFC=1
|
2007-10-17 17:15:53 +00:00
|
|
|
<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
|
2010-09-03 08:33:13 +00:00
|
|
|
<warnings>all
|
2010-05-10 12:13:49 +00:00
|
|
|
<toolset>gcc:<cxxflags>-Wextra
|
|
|
|
<toolset>gcc:<cxxflags>-Wshadow
|
|
|
|
<define>U_USING_ICU_NAMESPACE=0
|
2010-10-07 15:40:24 +00:00
|
|
|
#<toolset>gcc-mw:<link>static
|
|
|
|
#<toolset>gcc-mingw:<link>static
|
2018-11-11 17:12:56 +00:00
|
|
|
#<toolset>gcc-cygwin:<link>static
|
2015-08-19 18:20:20 +01:00
|
|
|
<toolset>sun:<link>static
|
2024-03-11 08:38:17 -05:00
|
|
|
<include>../src
|
2024-04-10 17:46:03 -05:00
|
|
|
<include>.
|
2003-10-07 10:34:27 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
#
|
|
|
|
# rule for simple regex test programs:
|
|
|
|
#
|
|
|
|
rule regex-test ( name : sources + : requirements * : input-files * )
|
|
|
|
{
|
2024-03-11 08:38:17 -05:00
|
|
|
return [ run $(sources) /boost/regex//boost_regex
|
2003-10-07 10:34:27 +00:00
|
|
|
:
|
|
|
|
: $(input-files)
|
|
|
|
: $(requirements)
|
|
|
|
: $(name) ] ;
|
|
|
|
}
|
|
|
|
|
2024-04-10 08:40:31 -05:00
|
|
|
R_SOURCE =
|
2005-01-13 17:06:21 +00:00
|
|
|
basic_tests.cpp
|
|
|
|
main.cpp
|
2020-12-13 18:03:47 +00:00
|
|
|
wmain.cpp
|
2005-01-13 17:06:21 +00:00
|
|
|
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
|
|
|
|
2024-03-16 19:06:10 +00:00
|
|
|
run regress/$(R_SOURCE) ../build//boost_regex ../build//icu_options
|
|
|
|
: # command line
|
|
|
|
: # input files
|
|
|
|
: # requirements
|
|
|
|
: regex_regress ;
|
|
|
|
|
|
|
|
run regress/$(R_SOURCE) ../build//boost_regex
|
2024-03-23 13:52:44 -05:00
|
|
|
/boost/thread//boost_thread ../build//icu_options
|
2024-03-16 19:06:10 +00:00
|
|
|
: # command line
|
|
|
|
: # input files
|
|
|
|
: # requirements
|
|
|
|
<define>TEST_THREADS
|
|
|
|
: regex_regress_threaded ;
|
|
|
|
|
|
|
|
run regress/$(R_SOURCE) ../build//boost_regex
|
2024-03-23 13:52:44 -05:00
|
|
|
/boost/thread//boost_thread ../build//icu_options
|
2024-03-16 19:06:10 +00:00
|
|
|
: # command line
|
|
|
|
: # input files
|
|
|
|
: # requirements
|
|
|
|
<define>TEST_THREADS
|
|
|
|
<define>BOOST_REGEX_MAX_CACHE_BLOCKS=0
|
|
|
|
: regex_regress_threaded_no_cache ;
|
|
|
|
|
|
|
|
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 ;
|
2024-03-23 17:45:04 +00:00
|
|
|
run pathology/bad_expression_test.cpp ;
|
|
|
|
run pathology/recursion_test.cpp ;
|
|
|
|
run named_subexpressions/named_subexpressions_test.cpp ;
|
|
|
|
run unicode/unicode_iterator_test.cpp : : : release <define>TEST_UTF8 : unicode_iterator_test_utf8 ;
|
|
|
|
run unicode/unicode_iterator_test.cpp : : : release <define>TEST_UTF16 : unicode_iterator_test_utf16 ;
|
2024-03-16 19:06:10 +00:00
|
|
|
run unicode/unicode_casefold_test.cpp ../build//boost_regex ../build//icu_options ;
|
2024-03-23 17:45:04 +00:00
|
|
|
run object_cache/object_cache_test.cpp ;
|
2024-03-16 19:06:10 +00:00
|
|
|
run config_info/regex_config_info.cpp ../build//boost_regex/<link>static : : : <test-info>always_show_run_output ;
|
2024-04-10 08:40:31 -05:00
|
|
|
run config_info/regex_config_info.cpp ../build//boost_regex : : : <test-info>always_show_run_output : regex_dll_config_info ;
|
2024-03-16 19:06:10 +00:00
|
|
|
run collate_info/collate_info.cpp ../build//boost_regex : : : <test-info>always_show_run_output : test_collate_info ;
|
2024-04-25 22:56:00 -05:00
|
|
|
link concepts/concept_check.cpp /boost/range//boost_range : <toolset>gcc:<cxxflags>-Wno-deprecated-copy ;
|
2024-03-23 17:45:04 +00:00
|
|
|
link concepts/concept_check.cpp : <define>BOOST_REGEX_STANDALONE <toolset>gcc:<cxxflags>-Wno-deprecated-copy : standalone_concept_check ;
|
|
|
|
link concepts/icu_concept_check.cpp : <define>BOOST_REGEX_STANDALONE <toolset>gcc:<cxxflags>-Wno-deprecated-copy ;
|
|
|
|
link concepts/icu_concept_check.cpp : <toolset>gcc:<cxxflags>-Wno-deprecated-copy : standalone_icu_concept_check ;
|
2024-04-29 22:08:35 -05:00
|
|
|
link concepts/range_concept_check.cpp : <toolset>gcc:<cxxflags>-Wno-deprecated-copy <library>/boost/range//boost_range ;
|
2024-04-10 08:40:31 -05:00
|
|
|
run concepts/test_bug_11988.cpp ;
|
2024-04-25 22:56:00 -05:00
|
|
|
run captures/captures_test.cpp ../build//icu_options /boost/array//boost_array : : : <threading>multi <define>BOOST_REGEX_MATCH_EXTRA=1 <define>BOOST_REGEX_NO_LIB=1 : captures_test ;
|
2024-03-16 19:06:10 +00:00
|
|
|
run regress/$(R_SOURCE) ./noeh_test//boost_regex_noeh ../build//icu_options : : : <define>BOOST_NO_EXCEPTIONS=1 <exception-handling>off <link>static <runtime-link>shared : regex_regress_noeh ;
|
2011-10-10 15:09:40 +00:00
|
|
|
compile test_consolidated.cpp ;
|
|
|
|
|
2010-05-10 12:13:49 +00:00
|
|
|
build-project ../example ;
|
2010-10-07 15:40:24 +00:00
|
|
|
|
2017-12-02 18:24:00 +02:00
|
|
|
# `quick` target (for CI)
|
|
|
|
run quick.cpp ../build//boost_regex ;
|
2024-04-10 08:40:31 -05:00
|
|
|
compile test_warnings.cpp
|
2018-07-22 17:16:21 +01:00
|
|
|
: <toolset>msvc:<warnings>all <toolset>msvc:<warnings-as-errors>on
|
|
|
|
<toolset>gcc:<warnings>all <toolset>gcc:<warnings-as-errors>on
|
|
|
|
<toolset>clang:<warnings>all <toolset>clang:<warnings-as-errors>on ;
|
2020-12-13 18:03:47 +00:00
|
|
|
|
2024-04-10 08:40:31 -05:00
|
|
|
compile test_warnings.cpp
|
2020-12-13 18:03:47 +00:00
|
|
|
: <toolset>msvc:<warnings>all <toolset>msvc:<warnings-as-errors>on
|
|
|
|
<toolset>gcc:<warnings>all <toolset>gcc:<warnings-as-errors>on
|
|
|
|
<toolset>clang:<warnings>all <toolset>clang:<warnings-as-errors>on
|
|
|
|
<define>BOOST_REGEX_STANDALONE
|
|
|
|
: test_warnings_standalone ;
|
2021-10-06 08:41:00 +01:00
|
|
|
|
|
|
|
compile test_windows_defs_1.cpp ;
|
|
|
|
compile test_windows_defs_2.cpp ;
|
|
|
|
compile test_windows_defs_3.cpp ;
|
|
|
|
compile test_windows_defs_4.cpp ;
|
2021-10-12 19:23:18 +01:00
|
|
|
|
2024-03-11 08:38:17 -05:00
|
|
|
run issue153.cpp : : : "<toolset>msvc:<linkflags>-STACK:2097152" ;
|
2024-11-06 09:20:07 +00:00
|
|
|
run issue227.cpp ;
|
2024-12-05 05:08:52 -08:00
|
|
|
run issue232.cpp ;
|
2024-12-16 16:58:25 +00:00
|
|
|
run lookbehind_recursion_stress_test.cpp ;
|
|
|
|
|