Browse Source

make release-tailored reports visible

[SVN r25215]
Aleksey Gurtovoy 21 years ago
parent
commit
2c3358d15c

+ 38 - 0
tools/regression/xsl_reports/xsl/v2/common.xsl

@@ -254,6 +254,44 @@ http://www.boost.org/LICENSE_1_0.txt)
     </func:function>
 
 
+    <xsl:template name="insert_view_link">
+        <xsl:param name="page"/>
+        <xsl:param name="release"/>
+        <xsl:param name="class"/>
+
+        <xsl:choose>
+        <xsl:when test="$release='yes'">
+            <a href="{$page}.html" class="{$class}" target="_top">
+                <xsl:text>Full View</xsl:text>
+            </a>
+        </xsl:when>
+        <xsl:otherwise>
+            <a href="{$page}_release.html" class="{$class}" target="_top">
+                <xsl:text>Release View</xsl:text>
+            </a>
+        </xsl:otherwise>
+        </xsl:choose>
+
+    </xsl:template>
+
+
+    <xsl:template name="insert_page_links">
+        <xsl:param name="page"/>
+        <xsl:param name="release"/>
+
+        <div class="links">
+            <xsl:copy-of select="document( 'html/make_tinyurl.html' )"/>
+            <xsl:text>&#160;|&#160;</xsl:text>
+            <xsl:call-template name="insert_view_link">
+                <xsl:with-param name="page" select="$page"/>
+                <xsl:with-param name="class" select="''"/>
+                <xsl:with-param name="release" select="$release"/>
+            </xsl:call-template>
+        </div>
+
+    </xsl:template>
+
+
     <xsl:template name="insert_runners_rows">
         <xsl:param name="mode"/>
         <xsl:param name="top_or_bottom"/>

+ 6 - 5
tools/regression/xsl_reports/xsl/v2/html/issues_legend.html

@@ -1,10 +1,11 @@
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
+
 -->
 
 <div class="legend">

+ 6 - 5
tools/regression/xsl_reports/xsl/v2/html/library_developer_legend.html

@@ -1,10 +1,11 @@
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
+
 -->
 
 <div class="legend">

+ 5 - 5
tools/regression/xsl_reports/xsl/v2/html/library_user_legend.html

@@ -1,10 +1,10 @@
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
 
 -->
 

+ 7 - 9
tools/regression/xsl_reports/xsl/v2/html/make_tinyurl.html

@@ -1,15 +1,14 @@
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
 
--->
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
 
-<div class="tinyurl">
+-->
 
+<span>
 <script type="text/javascript">
 <!--
 function make_tinyurl()
@@ -20,5 +19,4 @@ function make_tinyurl()
 </script>
 
 <a href="javascript:make_tinyurl()">TinyUrl</a>
-
-</div>
+</span>

+ 21 - 3
tools/regression/xsl_reports/xsl/v2/html/master.css

@@ -1,3 +1,13 @@
+/*
+
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
+
+*/
+
 /* All reports */
 
 body
@@ -26,7 +36,7 @@ h1.page-title
 { 
     text-align: left;
     text-transform: capitalize;
-    margin-top: 10pt;
+    margin-top: 5pt;
     margin-bottom: 10pt;
 }
 
@@ -49,11 +59,18 @@ a.hover-link:hover
     text-decoration: underline;
 }
 
+div.statistics
+{
+    width: 80%;
+    padding-bottom: 5pt;
+}
+
 div.legend
 {
     width: 80%;
     background-color: #f5f5f5;
     margin-top: 10pt;    
+    margin-bottom: 10pt;
 }
 
 div.comment
@@ -65,9 +82,10 @@ div.comment
     padding-bottom: 10pt;
 }
 
-div.tinyurl
+div.links
 {
-    margin-top: 10pt;    
+    margin-top: 0pt;
+    margin-bottom: 0pt;
 }
 
 table.header-table

+ 7 - 6
tools/regression/xsl_reports/xsl/v2/html/summary_developer_legend.html

@@ -1,10 +1,11 @@
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
+
 -->
 
 <div class="legend">
@@ -15,7 +16,7 @@
         <tr>
             <td>
                 <table width="100%" summary="success legend">
-                    <tr class="summary-row-single"><td class="summary-expected">OK</td></tr>
+                    <tr class="summary-row-single"><td class="summary-success-expected">OK</td></tr>
                  </table>
             </td>
             <td class="legend-item">

+ 6 - 5
tools/regression/xsl_reports/xsl/v2/html/summary_user_legend.html

@@ -1,10 +1,11 @@
 <!--
 
-// Copyright (c) MetaCommunications, Inc. 2003-2004
-//
-// Use, modification and distribution are subject to the Boost Software 
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 
-// at http://www.boost.org/LICENSE_1_0.txt)
+Copyright MetaCommunications, Inc. 2003-2004.
+
+Distributed under the Boost Software License, Version 1.0. (See
+accompanying file LICENSE_1_0.txt or copy at
+http://www.boost.org/LICENSE_1_0.txt)
+
 -->
 
 <div class="legend">

+ 30 - 14
tools/regression/xsl_reports/xsl/v2/result_page.xsl

@@ -39,13 +39,6 @@ http://www.boost.org/LICENSE_1_0.txt)
     <!-- the author-specified expected test results -->
     <xsl:variable name="explicit_markup" select="document( $explicit_markup_file )"/>
     <xsl:variable name="expected_results" select="document( $expected_results_file )" />
-
-    <xsl:variable name="alternate_mode">
-        <xsl:choose>
-        <xsl:when test="$mode='user'">developer</xsl:when>
-        <xsl:otherwise>user</xsl:otherwise>
-        </xsl:choose>
-    </xsl:variable>
      
     <!-- necessary indexes -->
     <xsl:key 
@@ -65,10 +58,15 @@ http://www.boost.org/LICENSE_1_0.txt)
 
     <!-- modes -->
 
+    <xsl:variable name="alternate_mode">
+        <xsl:choose>
+        <xsl:when test="$mode='user'">developer</xsl:when>
+        <xsl:otherwise>user</xsl:otherwise>
+        </xsl:choose>
+    </xsl:variable>
+
     <xsl:variable name="release_postfix">
-        <xsl:if test="$release='yes'">
-            <xsl:text>_release</xsl:text>
-        </xsl:if>
+        <xsl:if test="$release='yes'">_release</xsl:if>
     </xsl:variable>
 
 
@@ -206,8 +204,17 @@ http://www.boost.org/LICENSE_1_0.txt)
                         <a href="issues.html" class="toc-entry" target="_top">Unresolved issues</a>
                     </div>
                 </xsl:if>
+                
+                <div class="toc-header-entry">
+                    <xsl:call-template name="insert_view_link">
+                        <xsl:with-param name="page" select="'index'"/>
+                        <xsl:with-param name="class" select="'toc-entry'"/>
+                        <xsl:with-param name="release" select="$release"/>
+                    </xsl:call-template>
+                </div>
+
                 <hr/>
-                  
+                                  
                 <xsl:for-each select="$libraries">
                     <xsl:sort select="." order="ascending" />
                     <xsl:variable name="library_page" select="meta:encode_path(.)" />
@@ -268,6 +275,11 @@ http://www.boost.org/LICENSE_1_0.txt)
                   
                 <body>
 
+                <xsl:call-template name="insert_page_links">
+                    <xsl:with-param name="page" select="meta:encode_path( $library )"/>
+                    <xsl:with-param name="release" select="$release"/>
+                </xsl:call-template>
+
                 <h1 class="page-title">
                     <a class="hover-link" name="{$library}" href="http://www.boost.org/libs/{$library}" target="_top">
                         <xsl:value-of select="$library" />
@@ -380,7 +392,11 @@ http://www.boost.org/LICENSE_1_0.txt)
                 </xsl:if>
                     
                 <xsl:copy-of select="document( concat( 'html/library_', $mode, '_legend.html' ) )"/>
-                <xsl:copy-of select="document( 'html/make_tinyurl.html' )"/>
+
+                <xsl:call-template name="insert_page_links">
+                    <xsl:with-param name="page" select="meta:encode_path( $library )"/>
+                    <xsl:with-param name="release" select="$release"/>
+                </xsl:call-template>
 
                 </body>
                 </html>
@@ -496,7 +512,7 @@ http://www.boost.org/LICENSE_1_0.txt)
             </xsl:choose>
         </xsl:variable>
 
-        <td class="{$class}">
+        <td class="{$class}" title="{$test_log/@test-name}/{$toolset}">
         <xsl:choose>
             <xsl:when test="count( $test_log ) &lt; 1">
                 <xsl:text>&#160;&#160;&#160;&#160;</xsl:text>
@@ -566,7 +582,7 @@ http://www.boost.org/LICENSE_1_0.txt)
 
     </xsl:variable>
 
-        <td class="{$class}">
+        <td class="{$class}" title="{$test_log/@test-name}/{$toolset}">
         <xsl:choose>
             <xsl:when test="not( $test_log )">
             missing

+ 19 - 6
tools/regression/xsl_reports/xsl/v2/summary_page.xsl

@@ -101,6 +101,11 @@ http://www.boost.org/LICENSE_1_0.txt)
             </head>
             <body>
 
+            <xsl:call-template name="insert_page_links">
+                <xsl:with-param name="page" select="'summary'"/>
+                <xsl:with-param name="release" select="$release"/>
+            </xsl:call-template>
+
             <h1 class="page-title">
                 <xsl:text>Summary: </xsl:text>
                 <a class="hover-link" href="summary{$release_postfix}.html" target="_top"><xsl:value-of select="$source"/></a>
@@ -110,10 +115,14 @@ http://www.boost.org/LICENSE_1_0.txt)
                 <b>Report Time: </b> <xsl:value-of select="$run_date"/>
             </div>
 
+            <div class="statistics">
             Unusable: <xsl:value-of select="count( $test_case_logs[ meta:test_case_status( . ) = 'unusable' ] )"/>
-            Fail-unexepected: <xsl:value-of select="count( $test_case_logs[ meta:test_case_status( . ) = 'fail-unexpected' ] )"/>
-            fail-unexpected-new: <xsl:value-of select="count( $test_case_logs[ meta:test_case_status( . ) = 'fail-unexpected-new' ] )"/>
-
+            &#160;|&#160;
+            Regressions: <xsl:value-of select="count( $test_case_logs[ meta:test_case_status( . ) = 'fail-unexpected' ] )"/>
+            &#160;|&#160;
+            New failures: <xsl:value-of select="count( $test_case_logs[ meta:test_case_status( . ) = 'fail-unexpected-new' ] )"/>
+            </div>
+            
             <!-- summary table -->
 
             <table border="0" cellspacing="0" cellpadding="0" width="1%" class="summary-table" summary="Overall summary">
@@ -211,7 +220,11 @@ http://www.boost.org/LICENSE_1_0.txt)
             </table>
 
             <xsl:copy-of select="document( concat( 'html/summary_', $mode, '_legend.html' ) )"/>
-            <xsl:copy-of select="document( 'html/make_tinyurl.html' )"/>
+
+            <xsl:call-template name="insert_page_links">
+                <xsl:with-param name="page" select="'summary'"/>
+                <xsl:with-param name="release" select="$release"/>
+            </xsl:call-template>
 
             </body>
             </html>
@@ -230,7 +243,7 @@ http://www.boost.org/LICENSE_1_0.txt)
       
     <xsl:variable name="library_page" select="meta:encode_path( $library )" />
 
-    <td class="{$class}">
+    <td class="{$class}" title="{$library}/{$toolset}">
         <xsl:choose>
         <xsl:when test="$class='summary-unusable'">
             <xsl:text>&#160;&#160;</xsl:text>
@@ -298,7 +311,7 @@ http://www.boost.org/LICENSE_1_0.txt)
       
     <xsl:variable name="library_page" select="meta:encode_path( $library )" />
     
-    <td class="{$class}">
+    <td class="{$class}" title="{$library}/{$toolset}">
         <xsl:choose>
         <xsl:when test="$class='summary-unusable'">
             <a href="{$library_page}.html" class="log-link" target="_top">

粤ICP备19079148号