]> granicus.if.org Git - icu/commitdiff
ICU-8802 checkin xslt for transform
authorSteven R. Loomis <srl@icu-project.org>
Wed, 7 Sep 2011 20:28:30 +0000 (20:28 +0000)
committerSteven R. Loomis <srl@icu-project.org>
Wed, 7 Sep 2011 20:28:30 +0000 (20:28 +0000)
X-SVN-Rev: 30632

.gitattributes
icu4c/source/test/perf/icuperf2report.xsl [new file with mode: 0644]

index d811ae40d97e3d282b910692a5a60f31d68a27bb..3f7ff05349be7dd6bbd8c2f885ab127165db7358 100644 (file)
@@ -167,6 +167,7 @@ icu4c/source/test/perf/collperf/collperf.vcxproj -text
 icu4c/source/test/perf/collperf/collperf.vcxproj.filters -text
 icu4c/source/test/perf/convperf/convperf.vcxproj -text
 icu4c/source/test/perf/convperf/convperf.vcxproj.filters -text
+icu4c/source/test/perf/icuperf2report.xsl -text
 icu4c/source/test/perf/normperf/normperf.vcxproj -text
 icu4c/source/test/perf/normperf/normperf.vcxproj.filters -text
 icu4c/source/test/perf/strsrchperf/strsrchperf.vcxproj -text
diff --git a/icu4c/source/test/perf/icuperf2report.xsl b/icu4c/source/test/perf/icuperf2report.xsl
new file mode 100644 (file)
index 0000000..738f13e
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+
+<!-- Copyright (C) 2011 IBM Corporation and Others. All Rights Reserved. -->
+
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+  
+  <xsl:template match="/perfTestResults">
+    <report category="test">
+      <!-- For now, include ICU type and version in a comment. -->
+      <xsl:comment>icu4<xsl:value-of select="@icu"/>-<xsl:value-of select="@version"/></xsl:comment>
+      
+      <xsl:for-each select="perfTestResult">
+        <xsl:element name="test">
+          <xsl:attribute name="duration">
+            <xsl:value-of select="@time"/>
+          </xsl:attribute>
+          <xsl:attribute name="status">success</xsl:attribute>
+          <xsl:attribute name="name">
+            <xsl:value-of select="@test"/>
+          </xsl:attribute>
+          <xsl:attribute name="fixture">
+          </xsl:attribute>
+          <xsl:attribute name="file">source/test/perf</xsl:attribute>
+          <xsl:attribute name="stdout">iterations: <xsl:value-of select="@iterations"/></xsl:attribute>
+        </xsl:element>
+      </xsl:for-each>
+    </report>
+  </xsl:template>
+</xsl:stylesheet>