summaryrefslogtreecommitdiff
path: root/tests/auto/xmlpatternsxqts/summarizeBaseline.xsl
diff options
context:
space:
mode:
authorQt by Nokia <qt-info@nokia.com>2011-04-27 12:05:43 +0200
committeraxis <qt-info@nokia.com>2011-04-27 12:05:43 +0200
commite1b2c9deb5943faae2b29be6a5c006f75bb73f06 (patch)
treefc79e45367c0a8fc71185e9afc33f7503a58653c /tests/auto/xmlpatternsxqts/summarizeBaseline.xsl
downloadqtxmlpatterns-e1b2c9deb5943faae2b29be6a5c006f75bb73f06.tar.gz
Initial import from the monolithic Qt.
This is the beginning of revision history for this module. If you want to look at revision history older than this, please refer to the Qt Git wiki for how to use Git history grafting. At the time of writing, this wiki is located here: http://qt.gitorious.org/qt/pages/GitIntroductionWithQt If you have already performed the grafting and you don't see any history beyond this commit, try running "git log" with the "--follow" argument. Branched from the monolithic repo, Qt master branch, at commit 896db169ea224deb96c59ce8af800d019de63f12
Diffstat (limited to 'tests/auto/xmlpatternsxqts/summarizeBaseline.xsl')
-rw-r--r--tests/auto/xmlpatternsxqts/summarizeBaseline.xsl25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/xmlpatternsxqts/summarizeBaseline.xsl b/tests/auto/xmlpatternsxqts/summarizeBaseline.xsl
new file mode 100644
index 0000000..af74bd1
--- /dev/null
+++ b/tests/auto/xmlpatternsxqts/summarizeBaseline.xsl
@@ -0,0 +1,25 @@
+<xsl:stylesheet
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:m="http://www.w3.org/2005/02/query-test-XQTSResult">
+
+ <!-- Simply outputs a list of what test cases that failed. -->
+
+ <xsl:output method="text"/>
+
+ <xsl:template match="/">
+ <xsl:text>Failures:&#10;</xsl:text>
+ <xsl:apply-templates select="m:test-suite-result/m:test-case">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ </xsl:template>
+
+ <xsl:template match="m:test-case[@result = 'fail']">
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="@name"/>
+ <xsl:text>&#10;</xsl:text>
+ </xsl:template>
+
+</xsl:stylesheet>
+<!-- vim: et:ts=4:sw=4:sts=4
+-->