Просмотр исходного кода

Enable tests of a single library at a time

[SVN r61924]
Steven Watanabe 16 лет назад
Родитель
Сommit
1c0ce26ea0
1 измененных файлов с 15 добавлено и 0 удалено
  1. 15 0
      tools/regression/src/regression.py

+ 15 - 0
tools/regression/src/regression.py

@@ -57,6 +57,8 @@ class runner:
             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 @@ class runner:
         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 @@ class runner:
             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 @@ class runner:
         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

粤ICP备19079148号