Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61924 - trunk/tools/regression/src
From: steven_at_[hidden]
Date: 2010-05-12 00:30:50


Author: steven_watanabe
Date: 2010-05-12 00:30:47 EDT (Wed, 12 May 2010)
New Revision: 61924
URL: http://svn.boost.org/trac/boost/changeset/61924

Log:
Enable tests of a single library at a time
Text files modified:
   trunk/tools/regression/src/regression.py | 15 +++++++++++++++
   1 files changed, 15 insertions(+), 0 deletions(-)

Modified: trunk/tools/regression/src/regression.py
==============================================================================
--- trunk/tools/regression/src/regression.py (original)
+++ trunk/tools/regression/src/regression.py 2010-05-12 00:30:47 EDT (Wed, 12 May 2010)
@@ -57,6 +57,8 @@
             help="the tag for the results" )
         opt.add_option( '--toolsets',
             help="comma-separated list of toolsets to test with" )
+ opt.add_option( '--libraries',
+ help="comma separated list of libraries to test")
         opt.add_option( '--incremental',
             help="do incremental run (do not remove previous binaries)",
             action='store_true' )
@@ -113,6 +115,7 @@
         self.comment='comment.html'
         self.tag='trunk'
         self.toolsets=None
+ self.libraries=None
         self.incremental=False
         self.timeout=5
         self.bjam_options=''
@@ -189,6 +192,15 @@
             self.log('XSL reports dir = %s'%self.xsl_reports_dir)
             self.log('Timestamp = %s'%self.timestamp_path)
             self.log('Patch Boost script = %s'%self.patch_boost)
+
+ if self.libraries is not None:
+ self.libraries = self.libraries.split(",")
+ # Boost.Build depends on any having run
+ if "build" in self.libraries and "any" not in self.libraries:
+ self.libraries += ["any"]
+
+ self.bjam_options += ' "--limit-tests=' + \
+ "|".join(lib for lib in self.libraries if lib != "build") + '"'
         
         self.main()
     
@@ -347,6 +359,9 @@
         os.chdir( cd )
 
     def command_test_boost_build(self):
+ if self.libraries is not None and "build" not in self.libraries:
+ return
+
         self.import_utils()
         self.log( 'Running Boost.Build tests' )
         # Find the true names of the toolsets used for testing


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