Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/atf/dist/atf-report Cherry-pick upstream revisi...
details: https://anonhg.NetBSD.org/src/rev/56dd061be064
branches: trunk
changeset: 760452:56dd061be064
user: jmmv <jmmv%NetBSD.org@localhost>
date: Wed Jan 05 14:03:08 2011 +0000
description:
Cherry-pick upstream revision f791048924a1b68da070f17dfd5e5c2d825dd018:
Report bogus test programs in the HTML output
>From Paul Goyette in private mail. Fixes PR bin/44301.
diffstat:
external/bsd/atf/dist/atf-report/tests-results.xsl | 30 +++++++++++++++++++--
1 files changed, 26 insertions(+), 4 deletions(-)
diffs (75 lines):
diff -r c90787df8398 -r 56dd061be064 external/bsd/atf/dist/atf-report/tests-results.xsl
--- a/external/bsd/atf/dist/atf-report/tests-results.xsl Wed Jan 05 13:29:27 2011 +0000
+++ b/external/bsd/atf/dist/atf-report/tests-results.xsl Wed Jan 05 14:03:08 2011 +0000
@@ -86,6 +86,9 @@
<xsl:if test="$ntcs-skipped > 0">
<xsl:call-template name="skipped-tcs-summary" />
</xsl:if>
+ <xsl:if test="$ntps-failed > 0">
+ <xsl:call-template name="failed-tps-summary" />
+ </xsl:if>
<xsl:call-template name="info-bottom" />
<xsl:apply-templates select="tp" mode="details" />
@@ -167,14 +170,16 @@
<td class="numeric"><p><xsl:value-of select="$ntps" /></p></td>
</tr>
<tr class="entry">
- <td><p>Bogus test programs</p></td>
<xsl:choose>
<xsl:when test="$ntps-failed > 0">
+ <td><p><a href="#failed-tps-summary">Bogus test
+ programs</a></p></td>
<td class="numeric-error">
<p><xsl:value-of select="$ntps-failed" /></p>
</td>
</xsl:when>
<xsl:otherwise>
+ <td><p>Bogus test programs</p></td>
<td class="numeric">
<p><xsl:value-of select="$ntps-failed" /></p>
</td>
@@ -314,6 +319,20 @@
</table>
</xsl:template>
+ <xsl:template name="failed-tps-summary">
+ <a name="failed-tps-summary" />
+ <h2 id="failed-tps-summary">Bogus test programs summary</h2>
+
+ <table class="tcs-summary">
+ <tr>
+ <th>Test program</th>
+ </tr>
+ <xsl:apply-templates select="tp" mode="summary">
+ <xsl:with-param name="which">bogus</xsl:with-param>
+ </xsl:apply-templates>
+ </table>
+ </xsl:template>
+
<xsl:template name="skipped-tcs-summary">
<a name="skipped-tcs-summary" />
<h2 id="skipped-tcs-summary">Skipped test cases summary</h2>
@@ -335,6 +354,7 @@
<xsl:variable name="chosen">
<xsl:choose>
+ <xsl:when test="$which = 'bogus' and failed">yes</xsl:when>
<xsl:when test="$which = 'passed' and tc/passed">yes</xsl:when>
<xsl:when test="$which = 'failed' and tc/failed">yes</xsl:when>
<xsl:when test="$which = 'xfail' and
@@ -359,9 +379,11 @@
<p><xsl:value-of select="@id" /></p>
</td>
</tr>
- <xsl:apply-templates select="tc" mode="summary">
- <xsl:with-param name="which" select="$which" />
- </xsl:apply-templates>
+ <xsl:if test="$which != 'bogus'">
+ <xsl:apply-templates select="tc" mode="summary">
+ <xsl:with-param name="which" select="$which" />
+ </xsl:apply-templates>
+ </xsl:if>
</xsl:if>
</xsl:template>
Home |
Main Index |
Thread Index |
Old Index