Procházet zdrojové kódy

More warning fixes

[SVN r29479]
Aleksey Gurtovoy před 21 roky
rodič
revize
b74c8eb1c1

+ 1 - 0
tools/regression/xsl_reports/boost_wide_report.py

@@ -490,6 +490,7 @@ def make_result_pages(
             , {
                   'source':                 tag
                 , 'run_date':               run_date
+                , 'warnings':               warnings_text
                 , 'comment_file':           comment_file
                 , 'expected_results_file':  expected_results_file
                 , 'explicit_markup_file':   failures_markup_file

+ 3 - 2
tools/regression/xsl_reports/runner/regression.py

@@ -135,8 +135,9 @@ def http_get( source_url, destination, proxy ):
     src.close()
 
 
-def download_boost_tarball( destination, tag, proxy ):
-    tarball_name = 'boost-%s.tar.bz2' % tag
+def download_boost_tarball( destination, tag, proxy, timestamp_only = False ):
+    if not timestamp_only:  tarball_name = 'boost-%s.tar.bz2' % tag
+    else:                   tarball_name = 'boost-%s.timestamp' % tag
     tarball_path = os.path.join( destination, tarball_name )
     tarball_url = 'http://www.meta-comm.com/engineering/boost/snapshot/%s' % tarball_name
 

+ 21 - 8
tools/regression/xsl_reports/xsl/v2/common.xsl

@@ -320,18 +320,31 @@ http://www.boost.org/LICENSE_1_0.txt)
     <xsl:template name="insert_report_header">
         <xsl:param name="run_date"/>
         <xsl:param name="warnings"/>
+        <xsl:param name="purpose"/>
 
         <div class="report-info">
-            <b>Report Time: </b> <xsl:value-of select="meta:format_timestamp( $run_date )"/>
-        </div>
+            <div>
+                <b>Report Time: </b> <xsl:value-of select="meta:format_timestamp( $run_date )"/>
+            </div>
 
-        <xsl:if test="$warnings">
-            <xsl:for-each select="str:split( $warnings )">
-                <div class="report-warning">
-                    <b>Warning: </b> <xsl:value-of select="."/>
+            <xsl:if test="$purpose">
+                <div>
+                    <b>Purpose: </b> <xsl:value-of select="$purpose"/>
                 </div>
-            </xsl:for-each>
-        </xsl:if>
+            </xsl:if>
+
+            <xsl:if test="$warnings">
+                <xsl:for-each select="str:split( $warnings, '+' )">
+                    <div class="report-warning">
+                        <b>Warning: </b> 
+                        <a href="mailto:boost-testing@lists.boost.org?subject=[Report Pages] {.} ({meta:format_timestamp( $run_date )})" class="warning-link">
+                            <xsl:value-of select="."/>
+                        </a>
+                    </div>
+                </xsl:for-each>
+            </xsl:if>
+
+        </div>
 
     </xsl:template>
 

+ 16 - 5
tools/regression/xsl_reports/xsl/v2/html/master.css

@@ -59,6 +59,20 @@ a.hover-link:hover
     text-decoration: underline;
 }
 
+ a.warning-link:link
+,a.warning-link:visited
+,a.warning-link:active
+{
+    color: red;
+    text-decoration: none;
+}
+
+a.warning-link:hover
+{
+    color: red;
+    text-decoration: underline;
+}
+
 div.statistics
 {
     width: 80%;
@@ -135,14 +149,11 @@ div.report-info
     width: 80%;
 }
 
-div.purpose
+div.report-warning
 { 
-    text-align: left;
-    margin-left: 5pt;
-    margin-top: 10pt;
+    color: red;
 }
 
-
 div.library-name
 { 
     margin-top: 20pt;

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

@@ -117,11 +117,8 @@ http://www.boost.org/LICENSE_1_0.txt)
           <xsl:call-template name="insert_report_header">
             <xsl:with-param name="run_date" select="$run_date"/>
             <xsl:with-param name="warnings" select="$warnings"/>
+            <xsl:with-param name="purpose" select="'Provides a list of current unresolved test failures.'"/>
           </xsl:call-template>
-          
-          <div class="report-info">
-              <b>Purpose: </b> Provides a list of current unresolved test failures. 
-          </div>
 
           <!-- Emit the index -->  
           <h2>Libraries with unresolved failures</h2>

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

@@ -167,13 +167,7 @@ http://www.boost.org/LICENSE_1_0.txt)
                     <a class="hover-link" href="summary.html" target="_top"><xsl:value-of select="$source"/></a>
                 </h1>                            
 
-                <xsl:call-template name="insert_report_header">
-                    <xsl:with-param name="run_date" select="$run_date"/>
-                    <xsl:with-param name="warnings" select="$warnings"/>
-                </xsl:call-template>
-
-                <div class="report-info">
-                    <b>Purpose: </b>
+                <xsl:variable name="purpose">
                     <xsl:choose>
                         <xsl:when test="$mode='user'">
                             The purpose of this report is to help a user to find out whether a particular library 
@@ -185,8 +179,14 @@ http://www.boost.org/LICENSE_1_0.txt)
                             report, see <a href="../{$alternate_mode}/index.html" target="_top">user summary</a>.
                         </xsl:when>
                     </xsl:choose>
-                </div>
-                              
+                </xsl:variable>
+
+                <xsl:call-template name="insert_report_header">
+                    <xsl:with-param name="run_date" select="$run_date"/>
+                    <xsl:with-param name="warnings" select="$warnings"/>
+                    <xsl:with-param name="purpose" select="$purpose"/>
+                </xsl:call-template>
+
                 <div class="comment">
                     <xsl:if test="$comment_file != ''">
                         <xsl:copy-of select="document( $comment_file )"/>

粤ICP备19079148号