Boost logo

Boost Testing :

From: Phil Endecott (spam_from_boost_testing_at_[hidden])
Date: 2007-09-19 14:28:35


[from the main boost list]

Beman Dawes wrote:
> Phil Endecott wrote:
>> Beman Dawes wrote:
>>> The Boost regression test results at
>>> http://beta.boost.org/development/tests/trunk/developer/summary.html are
>>> generated via xsl. The xsl files are found located at
>>> boost-root\tools\regression\xsl_reports\xsl\v2.

a.k.a. http://svn.boost.org/svn/boost/trunk/tools/regression/xsl_reports/xsl/v2/

>>> We want to make a very small addition to the reports

>> I can probably help out with your current "very small addition"

> Great! If you and Sebastian sign up for the Boost-Testing list at lists.boost.org,
> that would be helpful since it is the best list for discussion of these test related
> topics. 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.

So the "runner" is e.g. "IBM_Canada_Ltd", right? Do you want the
revision between that and the date? In that case, it looks like you
want to add a new block at line 464 of common.xsl. Based on the
immediately-preceding block which generates the runner name, you want
something like this:

         <tr>
             <td colspan="{$colspan}">&#160;</td>
             <xsl:for-each select="$run_toolsets//runs/run[
count(toolset) > 0 ]">
                 <td colspan="{count(toolset)}" class="revision">
                     <xsl:text>rev </xsl:text>
                     <xsl:value-of select="@revision"/>
                 </td>
             </xsl:for-each>
             <td colspan="{$colspan}">&#160;</td>
         </tr>

I've set the CSS class to "revison", so you'll want to adjust that too
in your html/master.css file; e.g. if you want the revision formatted
like the timestamp, around line 265 change "td.timestamp" to
"td.timestamp, td.revision".

> Since the "revision" property is new, it won't be present in results files for awhile

I think that @revision evaluates to an empty string if it is not
defined. If you want to make it look tidier you could add <xsl:if
test="@revision">...</xsl:if> around the inner-most two lines, to skip
the "rev " bit.

Regards,

Phil.


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