Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50110 - trunk/tools/regression/src
From: ghost_at_[hidden]
Date: 2008-12-04 05:15:13


Author: vladimir_prus
Date: 2008-12-04 05:15:13 EST (Thu, 04 Dec 2008)
New Revision: 50110
URL: http://svn.boost.org/trac/boost/changeset/50110

Log:
Run Boost.Build tests
Text files modified:
   trunk/tools/regression/src/regression.py | 15 ++++++++++-----
   1 files changed, 10 insertions(+), 5 deletions(-)

Modified: trunk/tools/regression/src/regression.py
==============================================================================
--- trunk/tools/regression/src/regression.py (original)
+++ trunk/tools/regression/src/regression.py 2008-12-04 05:15:13 EST (Thu, 04 Dec 2008)
@@ -351,11 +351,16 @@
         for t in toolsets:
             d = os.path.join(self.regression_results, ("boost-build-%s" % (t)))
             utils.makedirs (d)
- f = open(os.path.join(d, "test_log.xml"), "w")
- f.write("""
-<test-log library="build" test-name="module_actions" test-type="run" toolset="%s">
-<run result="succeed"/>
-</test-log>""" % (t))
+ fn = os.path.join(d, "test_log.xml")
+ cd = os.getcwd()
+ try:
+ os.chdir (os.path.join (self.boost_root, 'tools/build/v2/test'));
+ bjam_path = os.path.dirname (self.tool_path( self.bjam ))
+ self.log( "Using bjam binary in '%s'" % (bjam_path))
+ os.putenv('PATH', bjam_path + os.pathsep + os.environ['PATH'])
+ utils.system ( [ "%s test_all.py --default-bjam --xml %s > %s" % (sys.executable, t, fn) ] )
+ finally:
+ os.chdir( cd )
                             
     def command_test_process(self):
         self.import_utils()


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