ICU-8802 checkin xslt for transform

X-SVN-Rev: 30632
This commit is contained in:
Steven R. Loomis 2011-09-07 20:28:30 +00:00
parent 6050e51871
commit 8aabe8c5a6
2 changed files with 31 additions and 0 deletions

1
.gitattributes vendored
View 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

View file

@ -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>