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

1. --locate-root made to be really the same as --locate-root in
compiler_status.

2. issues list (issues.html) generation has been added.


[SVN r21407]

Misha Bergal 22 лет назад
Родитель
Сommit
a0fd7525f4
1 измененных файлов с 19 добавлено и 4 удалено
  1. 19 4
      tools/regression/xsl_reports/report.py

+ 19 - 4
tools/regression/xsl_reports/report.py

@@ -207,7 +207,20 @@ def make_result_pages( test_results_file
                      }
                    )
 
-
+    issues = os.path.join( output_dir, "issues.html"  )
+    if "i" in reports:
+        log( "    Making issues list..." )
+        xslt_proc( extended_test_results
+                   , xsl_path( "issues_page.xsl" )
+                   , issues
+                   , {
+                     "source": source
+                     , "run_date": run_date 
+                     , "comment_file": comment_file
+                     , "explicit_markup_file" : failures_markup_file
+                     }
+                   )
+                   
     for mode in ( "developer", "user" ):
         if mode[0] + "d" in reports:
             log( "    Making detailed %s  report..." % mode )
@@ -258,13 +271,14 @@ def build_experimental_reports( locate_root_dir
                                 , result_file_prefix
                                 , xslt_proc_name
                                 , dont_collect_logs = 0
-                                , reports = [ "dd", "ud", "us", "ds", "l", "p", "x" ]
+                                , reports = [ "dd", "ud", "us", "ds", "l", "p", "x", "i" ]
                                 ):
     ( run_date ) = time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime() )
     test_results_file = os.path.join( results_dir, "test_results.xml" )
+    bin_boost_dir = os.path.join( locate_root_dir, "bin", "boost" )
     print "dont_collect_logs: %s" % dont_collect_logs
     if not dont_collect_logs:
-        collect_test_logs( [ os.path.join( locate_root_dir, "libs" ), os.path.join( locate_root_dir, "status" ) ]
+        collect_test_logs( [ os.path.join( bin_boost_dir, "libs" ), os.path.join( bin_boost_dir, "status" ) ]
                            , test_results_file
                            )
 
@@ -297,7 +311,7 @@ def accept_args( args ):
     options = { "--comment": ""
                 , "--expected-results": ""
                 , "--failures-markup": ""
-                , "--reports" : "dd,ud,us,ds,l,p,x" }
+                , "--reports" : "dd,ud,us,ds,l,p,x,i" }
     
     map( lambda x: options.__setitem__( x[0], x[1] ), option_pairs )
 
@@ -351,6 +365,7 @@ The following options are useful in debugging:
 \t                        l  - links
 \t                        p  - patches
 \t                        x  - extended results file
+\t                        i  - issues
     """
 
 def main():

粤ICP备19079148号