Browse Source

Work towards Boost.Build testing. Create dummy Boost.Build test results
for all toolsets.


[SVN r49772]

Vladimir Prus 17 years ago
parent
commit
169d998055
1 changed files with 16 additions and 0 deletions
  1. 16 0
      tools/regression/src/regression.py

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

@@ -310,6 +310,7 @@ class runner:
 
         if "test" in args:
             self.command_test_run()
+            self.command_test_boost_build()
 
         if "process" in args:
             if self.pjl_toolset != 'python':
@@ -341,6 +342,21 @@ class runner:
         utils.system( [ test_cmd ] )
         os.chdir( cd )
 
+    def command_test_boost_build(self):
+        self.import_utils()
+        self.log( 'Running Boost.Build tests' )
+        # Find the true names of the toolsets used for testing
+        toolsets = os.listdir(os.path.join(self.regression_results,
+                                           "boost/bin.v2/libs/any/test/any_test.test"));
+        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))
+                            
     def command_test_process(self):
         self.import_utils()
         self.log( 'Getting test case results out of "%s"...' % self.regression_log )

粤ICP备19079148号