takashi kadono
/
Nucleo446_SSD1331
Color Oled(SSD1331) connect to STMicroelectronics Nucleo-F466
mbed-os/features/cellular/junit_xsl.xslt@3:f3764f852aa8, 2018-10-11 (annotated)
- Committer:
- kadonotakashi
- Date:
- Thu Oct 11 02:27:46 2018 +0000
- Revision:
- 3:f3764f852aa8
- Parent:
- 0:8fdf9a60065b
Nucreo 446 + SSD1331 test version;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kadonotakashi | 0:8fdf9a60065b | 1 | <?xml version="1.0" encoding="UTF-8" ?> |
kadonotakashi | 0:8fdf9a60065b | 2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
kadonotakashi | 0:8fdf9a60065b | 3 | |
kadonotakashi | 0:8fdf9a60065b | 4 | <xsl:output encoding="UTF-8" indent="yes" method="html"/> |
kadonotakashi | 0:8fdf9a60065b | 5 | <xsl:strip-space elements="*"/> |
kadonotakashi | 0:8fdf9a60065b | 6 | |
kadonotakashi | 0:8fdf9a60065b | 7 | <xsl:variable name="list" |
kadonotakashi | 0:8fdf9a60065b | 8 | select="document('index.xml')/list" /> |
kadonotakashi | 0:8fdf9a60065b | 9 | |
kadonotakashi | 0:8fdf9a60065b | 10 | <xsl:template match="/"> |
kadonotakashi | 0:8fdf9a60065b | 11 | <h1> |
kadonotakashi | 0:8fdf9a60065b | 12 | Unittest report |
kadonotakashi | 0:8fdf9a60065b | 13 | </h1> |
kadonotakashi | 0:8fdf9a60065b | 14 | |
kadonotakashi | 0:8fdf9a60065b | 15 | <p> |
kadonotakashi | 0:8fdf9a60065b | 16 | <b> |
kadonotakashi | 0:8fdf9a60065b | 17 | Total tests run <xsl:value-of select="sum(document($list/entry/@name)/testsuite/@tests)"/> |
kadonotakashi | 0:8fdf9a60065b | 18 | , failures: <xsl:value-of select="sum(document($list/entry/@name)/testsuite/@failures) + sum(document($list/entry/@name)/testsuite/@errors)"/> |
kadonotakashi | 0:8fdf9a60065b | 19 | </b> |
kadonotakashi | 0:8fdf9a60065b | 20 | |
kadonotakashi | 0:8fdf9a60065b | 21 | <xsl:for-each select="document($list/entry/@name)" > |
kadonotakashi | 0:8fdf9a60065b | 22 | <xsl:apply-templates select="testsuite"/> |
kadonotakashi | 0:8fdf9a60065b | 23 | </xsl:for-each> |
kadonotakashi | 0:8fdf9a60065b | 24 | </p> |
kadonotakashi | 0:8fdf9a60065b | 25 | </xsl:template> |
kadonotakashi | 0:8fdf9a60065b | 26 | |
kadonotakashi | 0:8fdf9a60065b | 27 | <xsl:template match="testsuite"> |
kadonotakashi | 0:8fdf9a60065b | 28 | <h2> |
kadonotakashi | 0:8fdf9a60065b | 29 | <xsl:value-of select="@name" /> |
kadonotakashi | 0:8fdf9a60065b | 30 | </h2> |
kadonotakashi | 0:8fdf9a60065b | 31 | <table border="1" cellSpacing="0" cellPadding="10" > |
kadonotakashi | 0:8fdf9a60065b | 32 | <tr> |
kadonotakashi | 0:8fdf9a60065b | 33 | <th>Tests run</th> |
kadonotakashi | 0:8fdf9a60065b | 34 | <th>Tests failed</th> |
kadonotakashi | 0:8fdf9a60065b | 35 | <th>Other errors</th> |
kadonotakashi | 0:8fdf9a60065b | 36 | </tr> |
kadonotakashi | 0:8fdf9a60065b | 37 | <tr> |
kadonotakashi | 0:8fdf9a60065b | 38 | <td><xsl:value-of select="@tests"/></td> |
kadonotakashi | 0:8fdf9a60065b | 39 | <td><xsl:value-of select="@failures"/></td> |
kadonotakashi | 0:8fdf9a60065b | 40 | <td><xsl:value-of select="@errors"/></td> |
kadonotakashi | 0:8fdf9a60065b | 41 | </tr> |
kadonotakashi | 0:8fdf9a60065b | 42 | </table> |
kadonotakashi | 0:8fdf9a60065b | 43 | <br/> |
kadonotakashi | 0:8fdf9a60065b | 44 | <table border="1" cellSpacing="0" cellPadding="10" > |
kadonotakashi | 0:8fdf9a60065b | 45 | <tr> |
kadonotakashi | 0:8fdf9a60065b | 46 | <th>Tests name</th> |
kadonotakashi | 0:8fdf9a60065b | 47 | <th>PASS/FAIL</th> |
kadonotakashi | 0:8fdf9a60065b | 48 | <th>Failing case</th> |
kadonotakashi | 0:8fdf9a60065b | 49 | <th>Reason</th> |
kadonotakashi | 0:8fdf9a60065b | 50 | </tr> |
kadonotakashi | 0:8fdf9a60065b | 51 | <xsl:apply-templates select="testcase"/> |
kadonotakashi | 0:8fdf9a60065b | 52 | </table> |
kadonotakashi | 0:8fdf9a60065b | 53 | </xsl:template> |
kadonotakashi | 0:8fdf9a60065b | 54 | |
kadonotakashi | 0:8fdf9a60065b | 55 | <xsl:template match="testcase"> |
kadonotakashi | 0:8fdf9a60065b | 56 | <xsl:choose> |
kadonotakashi | 0:8fdf9a60065b | 57 | <xsl:when test="failure"> |
kadonotakashi | 0:8fdf9a60065b | 58 | <tr><td><font color="#FF0000"><xsl:value-of select="@name" /></font></td><xsl:apply-templates select="failure"/></tr> |
kadonotakashi | 0:8fdf9a60065b | 59 | </xsl:when> |
kadonotakashi | 0:8fdf9a60065b | 60 | <xsl:when test="error"> |
kadonotakashi | 0:8fdf9a60065b | 61 | <tr><td><font color="#FF0000"><xsl:value-of select="@name" /></font></td><xsl:apply-templates select="error"/></tr> |
kadonotakashi | 0:8fdf9a60065b | 62 | </xsl:when> |
kadonotakashi | 0:8fdf9a60065b | 63 | <xsl:otherwise> |
kadonotakashi | 0:8fdf9a60065b | 64 | <tr><td><xsl:value-of select="@name" /></td><td><font color="#00FF00">PASS</font></td><td></td><td></td></tr> |
kadonotakashi | 0:8fdf9a60065b | 65 | </xsl:otherwise> |
kadonotakashi | 0:8fdf9a60065b | 66 | </xsl:choose> |
kadonotakashi | 0:8fdf9a60065b | 67 | </xsl:template> |
kadonotakashi | 0:8fdf9a60065b | 68 | |
kadonotakashi | 0:8fdf9a60065b | 69 | <xsl:template match="failure"> |
kadonotakashi | 0:8fdf9a60065b | 70 | <td> |
kadonotakashi | 0:8fdf9a60065b | 71 | <b><font color="#FF0000">FAIL</font></b> |
kadonotakashi | 0:8fdf9a60065b | 72 | </td> |
kadonotakashi | 0:8fdf9a60065b | 73 | <td> |
kadonotakashi | 0:8fdf9a60065b | 74 | <font color="#ff0000"> |
kadonotakashi | 0:8fdf9a60065b | 75 | <xsl:value-of select="@message" /> |
kadonotakashi | 0:8fdf9a60065b | 76 | </font> |
kadonotakashi | 0:8fdf9a60065b | 77 | </td> |
kadonotakashi | 0:8fdf9a60065b | 78 | <td> |
kadonotakashi | 0:8fdf9a60065b | 79 | <font color="#ff0000"> |
kadonotakashi | 0:8fdf9a60065b | 80 | <xsl:value-of select="@type" /> |
kadonotakashi | 0:8fdf9a60065b | 81 | </font> |
kadonotakashi | 0:8fdf9a60065b | 82 | </td> |
kadonotakashi | 0:8fdf9a60065b | 83 | </xsl:template> |
kadonotakashi | 0:8fdf9a60065b | 84 | |
kadonotakashi | 0:8fdf9a60065b | 85 | <xsl:template match="error"> |
kadonotakashi | 0:8fdf9a60065b | 86 | <td> |
kadonotakashi | 0:8fdf9a60065b | 87 | <b><font color="#FF0000">FAIL</font></b> |
kadonotakashi | 0:8fdf9a60065b | 88 | </td> |
kadonotakashi | 0:8fdf9a60065b | 89 | <td> |
kadonotakashi | 0:8fdf9a60065b | 90 | <font color="#ff0000"> |
kadonotakashi | 0:8fdf9a60065b | 91 | <xsl:value-of select="@message" /> |
kadonotakashi | 0:8fdf9a60065b | 92 | </font> |
kadonotakashi | 0:8fdf9a60065b | 93 | </td> |
kadonotakashi | 0:8fdf9a60065b | 94 | <td> |
kadonotakashi | 0:8fdf9a60065b | 95 | <font color="#ff0000"> |
kadonotakashi | 0:8fdf9a60065b | 96 | <xsl:value-of select="@type" /> |
kadonotakashi | 0:8fdf9a60065b | 97 | </font> |
kadonotakashi | 0:8fdf9a60065b | 98 | </td> |
kadonotakashi | 0:8fdf9a60065b | 99 | </xsl:template> |
kadonotakashi | 0:8fdf9a60065b | 100 | |
kadonotakashi | 0:8fdf9a60065b | 101 | </xsl:stylesheet> |