Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52766 - in sandbox/SCons: libs/filesystem/test tools/scons
From: loonycyborg_at_[hidden]
Date: 2009-05-05 06:16:03


Author: loonycyborg
Date: 2009-05-05 06:16:01 EDT (Tue, 05 May 2009)
New Revision: 52766
URL: http://svn.boost.org/trac/boost/changeset/52766

Log:
Implemented all boost.filesystem regression tests.

Text files modified:
   sandbox/SCons/libs/filesystem/test/SConscript | 15 ++++++++++++++-
   sandbox/SCons/tools/scons/boost-tests.py | 19 ++++++++++++++++++-
   2 files changed, 32 insertions(+), 2 deletions(-)

Modified: sandbox/SCons/libs/filesystem/test/SConscript
==============================================================================
--- sandbox/SCons/libs/filesystem/test/SConscript (original)
+++ sandbox/SCons/libs/filesystem/test/SConscript 2009-05-05 06:16:01 EDT (Tue, 05 May 2009)
@@ -2,4 +2,17 @@
 Import("env")
 
 env.BoostUseLib("system")
-Alias("test", env.Program("path_test.cpp"))
+env.BoostRunTests(Split("""
+ path_test
+ operations_test
+ fstream_test
+ convenience_test
+ large_file_support_test
+ wide_test
+ """))
+env.BoostCompileTests(Split("""
+ deprecated_test
+ ../example/mbcopy
+ ../example/mbpath
+ ../example/simple_ls
+ """))

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 06:16:01 EDT (Tue, 05 May 2009)
@@ -1,8 +1,25 @@
 # vi: syntax=python:et:ts=4
-from SCons.Script import AddOption
+from SCons.Script import AddOption, Flatten
 
 def exists(env):
     return True
 
 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)
+ test = env.Command("$BOOST_LIB-"+test, test_prog, "./$SOURCE")
+ env.Alias("test", test)
+ def BoostRunTests(env, tests, **kw):
+ for test in Flatten(tests):
+ env.BoostRunTest(test, **kw)
+ def BoostCompileTests(env, tests, **kw):
+ for test in Flatten(tests):
+ env.BoostCompileTest(test, **kw)
+ env.AddMethod(BoostCompileTest)
+ env.AddMethod(BoostRunTest)
+ env.AddMethod(BoostRunTests)
+ env.AddMethod(BoostCompileTests)


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