Sfoglia il codice sorgente

Repoint old CVS links to SVN (patch by Niko Demmel)

[SVN r41006]
Aleksey Gurtovoy 18 anni fa
parent
commit
9b03c33f05

+ 7 - 4
tools/regression/xsl_reports/boost_wide_report.py

@@ -188,10 +188,11 @@ class action:
                 os.unlink( result )
     
 class merge_xml_action( action ):
-    def __init__( self, source, destination, expected_results_file, failures_markup_file ):
+    def __init__( self, source, destination, expected_results_file, failures_markup_file, tag ):
         action.__init__( self, destination )
         self.source_ = source
         self.destination_ = destination
+        self.tag_ = tag
         
         self.expected_results_file_ = expected_results_file
         self.failures_markup_file_  = failures_markup_file
@@ -261,6 +262,7 @@ class merge_xml_action( action ):
                 , {
                     "expected_results_file" : self.expected_results_file_
                   , "failures_markup_file": self.failures_markup_file_
+                  , "source" : self.tag_ 
                   }
                 )
 
@@ -384,7 +386,7 @@ def unzip_archives_task( source_dir, processed_dir, unzip_func ):
     for a in actions:
         a.run()
    
-def merge_xmls_task( source_dir, processed_dir, merged_dir, expected_results_file, failures_markup_file ):    
+def merge_xmls_task( source_dir, processed_dir, merged_dir, expected_results_file, failures_markup_file, tag ):    
     utils.log( '' )
     utils.log( 'merge_xmls_task: merging updated XMLs in "%s"...' % source_dir )
     __log__ = 1
@@ -394,7 +396,8 @@ def merge_xmls_task( source_dir, processed_dir, merged_dir, expected_results_fil
     actions = [ merge_xml_action( os.path.join( processed_dir, os.path.basename( x ) )
                                   , x
                                   , expected_results_file
-                                  , failures_markup_file ) for x in target_files ]
+                                  , failures_markup_file 
+                                  , tag ) for x in target_files ]
 
     for a in actions:
         a.run()
@@ -487,7 +490,7 @@ def execute_tasks(
         ftp_task( ftp_site, site_path, incoming_dir )
 
     unzip_archives_task( incoming_dir, processed_dir, utils.unzip )
-    merge_xmls_task( incoming_dir, processed_dir, merged_dir, expected_results_file, failures_markup_file )
+    merge_xmls_task( incoming_dir, processed_dir, merged_dir, expected_results_file, failures_markup_file, tag )
     make_links_task( merged_dir
                      , output_dir
                      , tag

+ 3 - 1
tools/regression/xsl_reports/report.py

@@ -71,7 +71,9 @@ def make_result_pages(
             , test_results_file
             , xsl_path( 'add_expected_results.xsl', v2 )
             , extended_test_results
-            , { 'expected_results_file': expected_results_file, 'failures_markup_file' : failures_markup_file }
+            , { 'expected_results_file': expected_results_file
+              , 'failures_markup_file' : failures_markup_file
+              , 'source' : tag }
             )
 
     links = os.path.join( output_dir, 'links.html' )

+ 5 - 4
tools/regression/xsl_reports/xsl/v2/add_expected_results.xsl

@@ -23,6 +23,7 @@ http://www.boost.org/LICENSE_1_0.txt)
       
     <xsl:param name="expected_results_file"/>
     <xsl:param name="failures_markup_file"/>
+    <xsl:param name="source"/>
     <xsl:variable name="expected_results" select="document( $expected_results_file )" />
 
     <func:function name="meta:is_test_log_complete">
@@ -168,8 +169,8 @@ http://www.boost.org/LICENSE_1_0.txt)
                         <note>
                             <span class="auto-note">
                                 This test case was explicitly marked up in 
-                                <a href="http://cvs.sourceforge.net/viewcvs.py/boost/boost/status/explicit-failures-markup.xml">
-                                    status/explicit-failures-markup.xml</a> file in the Boost CVS as "expected to fail",
+                                <a href="http://svn.boost.org/svn/boost/{$source}/status/explicit-failures-markup.xml">
+                                    status/explicit-failures-markup.xml</a> file in the Boost SVN as "expected to fail",
                                 but is passing. Please consult the notes/output below for more details.
                             </span>
                         </note>
@@ -189,8 +190,8 @@ http://www.boost.org/LICENSE_1_0.txt)
                                 <note>
                                     <span class="auto-note">
                                         This failure was explicitly marked as expected in 
-                                        <a href="http://cvs.sourceforge.net/viewcvs.py/boost/boost/status/explicit-failures-markup.xml">
-                                            status/explicit-failures-markup.xml</a> file in the Boost CVS. 
+                                        <a href="http://svn.boost.org/svn/boost/{$source}/status/explicit-failures-markup.xml">
+                                            status/explicit-failures-markup.xml</a> file in the Boost SVN. 
                                         Please contact the library author(s)/maintainer(s) for the explanation of this markup.
                                     </span>
                                 </note>

+ 1 - 1
tools/regression/xsl_reports/xsl/v2/issues_page.xsl

@@ -178,7 +178,7 @@ http://www.boost.org/LICENSE_1_0.txt)
                   <xsl:variable name="test_program"  select="$library_tests[@test-name = $test_name]/@test-program"/>
                   <tr>
                     <td class="test-name">
-                      <a href="http://cvs.sourceforge.net/viewcvs.py/*checkout*/boost/boost/{$test_program}" class="test-link" target="_top">
+                      <a href="http://svn.boost.org/svn/boost/{$source}/{$test_program}" class="test-link" target="_top">
                         <xsl:value-of select="$test_name"/>
                       </a>
                     </td>

+ 1 - 1
tools/regression/xsl_reports/xsl/v2/result_page.xsl

@@ -595,7 +595,7 @@ http://www.boost.org/LICENSE_1_0.txt)
 
         <xsl:variable name="test_header">
         <td class="test-name">
-            <a href="http://cvs.sourceforge.net/viewcvs.py/*checkout*/boost/boost/{$test_program}" class="test-link" target="_top">
+            <a href="http://svn.boost.org/svn/boost/{$source}/{$test_program}" class="test-link" target="_top">
                 <xsl:value-of select="$test_name"/>
             </a>
         </td>

粤ICP备19079148号