Boost logo

Boost Testing :

From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2007-09-18 13:50:24


Beman Dawes wrote:
> The "very small addition" is to display the revision number, in the
> form "rev 12345" or similar, in the column header, centered under the
> "runner". The number will be supplied as the value for a new
> "revision" property in the results file. Here is the python code that
> will create it, to give you the context:
>
> results_xml.startElement(
> 'test-run'
> , {
> 'tag': tag
> , 'platform': platform
> , 'runner': runner_id
> , 'timestamp': timestamp
> , 'source': source
> , 'run-type': run_type
> , 'revision': revision
> }
> )
Hi,

That's a pretty trivial change, but I'd need some data to actually test
it. Where do I get regression XML from, and how do I run the
transformations with all paths correct?

Attached is how I would imagine this to work (as a patch against the
current trunk).

Sebastian Redl

Index: tools/regression/xsl_reports/xsl/v2/common.xsl
===================================================================
--- tools/regression/xsl_reports/xsl/v2/common.xsl (revision 39369)
+++ tools/regression/xsl_reports/xsl/v2/common.xsl (working copy)
@@ -465,6 +465,16 @@
         <tr>
             <td colspan="{$colspan}">&#160;</td>
             <xsl:for-each select="$run_toolsets//runs/run[ count(toolset) > 0 ]">
+ <td colspan="{count(toolset)}" class="revision">
+ rev <xsl:value-of select="@revision"/>
+ </td>
+ </xsl:for-each>
+ <td colspan="{$colspan}">&#160;</td>
+ </tr>
+
+ <tr>
+ <td colspan="{$colspan}">&#160;</td>
+ <xsl:for-each select="$run_toolsets//runs/run[ count(toolset) > 0 ]">
                 <xsl:variable name="timestamp_diff" select="meta:timestamp_difference( @timestamp, $run_date )"/>
                 <xsl:variable name="age" select="meta:iif( $timestamp_diff &lt; 30, $timestamp_diff, 30 )"/>
                 <td colspan="{count(toolset)}" class="timestamp">


Boost-testing list run by mbergal at meta-comm.com