Imported Upstream version 58.1
[platform/upstream/icu.git] / source / test / perf / icuperf2report.xsl
1 <?xml version="1.0"?>
2
3 <!-- Copyright (C) 2016 and later: Unicode, Inc. and others. -->
4 <!-- License & terms of use: http://www.unicode.org/copyright.html#License -->
5
6 <!-- Copyright (C) 2011 IBM Corporation and Others. All Rights Reserved. -->
7
8 <xsl:stylesheet version="1.0"
9                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
10   
11   <xsl:template match="/perfTestResults">
12     <report category="test">
13       <!-- For now, include ICU type and version in a comment. -->
14       <xsl:comment>icu4<xsl:value-of select="@icu"/>-<xsl:value-of select="@version"/></xsl:comment>
15       
16       <xsl:for-each select="perfTestResult">
17         <xsl:element name="test">
18           <xsl:attribute name="duration">
19             <xsl:value-of select="@time"/>
20           </xsl:attribute>
21           <xsl:attribute name="status">success</xsl:attribute>
22           <xsl:attribute name="name">
23             <xsl:value-of select="@test"/>
24           </xsl:attribute>
25           <xsl:attribute name="fixture">
26           </xsl:attribute>
27           <xsl:attribute name="file">source/test/perf</xsl:attribute>
28           <xsl:attribute name="stdout">iterations: <xsl:value-of select="@iterations"/></xsl:attribute>
29         </xsl:element>
30       </xsl:for-each>
31     </report>
32   </xsl:template>
33 </xsl:stylesheet>