|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52772 - in sandbox/SCons: libs/regex/test tools/scons
From: loonycyborg_at_[hidden]
Date: 2009-05-05 15:28:48
Author: loonycyborg
Date: 2009-05-05 15:28:48 EDT (Tue, 05 May 2009)
New Revision: 52772
URL: http://svn.boost.org/trac/boost/changeset/52772
Log:
Added support for building some of boost.regex regression tests.
Added:
sandbox/SCons/libs/regex/test/SConscript (contents, props changed)
Text files modified:
sandbox/SCons/tools/scons/boost-tests.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Added: sandbox/SCons/libs/regex/test/SConscript
==============================================================================
--- (empty file)
+++ sandbox/SCons/libs/regex/test/SConscript 2009-05-05 15:28:48 EDT (Tue, 05 May 2009)
@@ -0,0 +1,28 @@
+# vi: syntax=python:et:ts=4
+Import("env")
+
+regress_sources = Split("""
+ regress/basic_tests.cpp
+ regress/main.cpp
+ regress/test_alt.cpp
+ regress/test_anchors.cpp
+ regress/test_asserts.cpp
+ regress/test_backrefs.cpp
+ regress/test_deprecated.cpp
+ regress/test_emacs.cpp
+ regress/test_escapes.cpp
+ regress/test_grep.cpp
+ regress/test_locale.cpp
+ regress/test_mfc.cpp
+ regress/test_non_greedy_repeats.cpp
+ regress/test_perl_ex.cpp
+ regress/test_replace.cpp
+ regress/test_sets.cpp
+ regress/test_simple_repeats.cpp
+ regress/test_tricky_cases.cpp
+ regress/test_icu.cpp
+ regress/test_unicode.cpp
+ regress/test_overloads.cpp
+ regress/test_operators.cpp
+ """)
+env.BoostRunTest("regex_regress", regress_sources)
Modified: sandbox/SCons/tools/scons/boost-tests.py
==============================================================================
--- sandbox/SCons/tools/scons/boost-tests.py (original)
+++ sandbox/SCons/tools/scons/boost-tests.py 2009-05-05 15:28:48 EDT (Tue, 05 May 2009)
@@ -7,10 +7,10 @@
def generate(env):
AddOption('--test', dest='test', action="store_true")
- def BoostCompileTest(env, test, **kw):
- env.Alias("test", env.Object(test, test + ".cpp"), **kw)
- def BoostRunTest(env, test, **kw):
- test_prog = env.Program(test, test + ".cpp", **kw)
+ def BoostCompileTest(env, test, source = None, **kw):
+ env.Alias("test", env.Object(test, (source is None) and (test + ".cpp") or source), **kw)
+ def BoostRunTest(env, test, source = None, **kw):
+ test_prog = env.Program(test, (source is None) and (test + ".cpp") or source, **kw)
test = env.Command("$BOOST_LIB-"+test, test_prog, "./$SOURCE")
env.Alias("test", test)
def BoostRunTests(env, tests, **kw):
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk