1<?xml version='1.0'?> 2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 4 <xsl:template match="BCUNIT_TEST_LIST_REPORT"> 5 <html> 6 <head> 7 <title> BCUnit - Suite and Test Case Organization in Test Registry </title> 8 </head> 9 10 <body bgcolor="#e0e0f0"> 11 <xsl:apply-templates/> 12 </body> 13 </html> 14 </xsl:template> 15 16 <xsl:template match="BCUNIT_HEADER"> 17 <div align="center"> 18 <h3> 19 <b> BCUnit - A Unit testing framework for C </b> <br/> 20 <a href="https://github.com/BelledonneCommunications/bcunit/"> https://github.com/BelledonneCommunications/bcunit/ </a> 21 </h3> 22 </div> 23 </xsl:template> 24 25 <xsl:template match="BCUNIT_LIST_TOTAL_SUMMARY"> 26 <p/> 27 <table align="center" width="50%"> 28 <xsl:apply-templates/> 29 </table> 30 </xsl:template> 31 32 <xsl:template match="BCUNIT_LIST_TOTAL_SUMMARY_RECORD"> 33 <tr> 34 <td bgcolor="#f0f0e0" width="70%"> 35 <xsl:value-of select="BCUNIT_LIST_TOTAL_SUMMARY_RECORD_TEXT" /> 36 </td> 37 <td bgcolor="#f0e0e0" align="center"> 38 <xsl:value-of select="BCUNIT_LIST_TOTAL_SUMMARY_RECORD_VALUE" /> 39 </td> 40 </tr> 41 </xsl:template> 42 43 <xsl:template match="BCUNIT_ALL_TEST_LISTING"> 44 <p/> 45 <div align="center"> 46 <h2> Listing of Registered Suites & Tests </h2> 47 </div> 48 <table align="center" width="90%"> 49 <tr bgcolor="#00ccff"> 50 <td colspan="8"> </td> 51 </tr> 52 <tr> 53 <td width="44%" colspan="2" bgcolor="#f0f0e0"> </td> 54 <td width="14%" bgcolor="#f0f0e0" align="center"> <b> Initialize Function? </b> </td> 55 <td width="14%" bgcolor="#f0f0e0" align="center"> <b> Cleanup Function? </b> </td> 56 <td width="14%" bgcolor="#f0f0e0" align="center"> <b> Test Count </b> </td> 57 <td width="14%" bgcolor="#f0f0e0" align="center"> <b> Active? </b> </td> 58 </tr> 59 <xsl:apply-templates/> 60 </table> 61 </xsl:template> 62 63 <xsl:template match="BCUNIT_ALL_TEST_LISTING_SUITE"> 64 <xsl:apply-templates/> 65 </xsl:template> 66 67 <xsl:template match="BCUNIT_ALL_TEST_LISTING_SUITE_DEFINITION"> 68 <tr bgcolor="#00ccff"> 69 <td colspan="8"> </td> 70 </tr> 71 <tr> 72 <td bgcolor="#f0e0f0" align="left"> Suite </td> 73 <td bgcolor="#f0e0f0" align="left"> <b> <xsl:value-of select="SUITE_NAME" /> </b> </td> 74 75 <td bgcolor="#f0e0f0" align="center"> <xsl:value-of select="INITIALIZE_VALUE" /> </td> 76 <td bgcolor="#f0e0f0" align="center"> <xsl:value-of select="CLEANUP_VALUE" /> </td> 77 <td bgcolor="#f0e0f0" align="center"> <xsl:value-of select="TEST_COUNT_VALUE" /> </td> 78 <td bgcolor="#f0e0f0" align="center"> <xsl:value-of select="ACTIVE_VALUE" /> </td> 79 </tr> 80 <tr bgcolor="#00ccff"> 81 <td colspan="8"> </td> 82 </tr> 83 </xsl:template> 84 85 <xsl:template match="BCUNIT_ALL_TEST_LISTING_SUITE_TESTS"> 86 <xsl:apply-templates/> 87 </xsl:template> 88 89 <xsl:template match="TEST_CASE_DEFINITION"> 90 <tr> 91 <td align="center" bgcolor="#e0f0d0"> Test </td> 92 <td align="left" colspan="4" bgcolor="#e0e0d0"> 93 <xsl:value-of select="TEST_CASE_NAME" /> 94 </td> 95 <td align="center" bgcolor="#e0e0d0"> 96 <xsl:value-of select="TEST_ACTIVE_VALUE" /> 97 </td> 98 </tr> 99 </xsl:template> 100 101 <xsl:template match="BCUNIT_ALL_TEST_LISTING_GROUP"> 102 <xsl:apply-templates/> 103 </xsl:template> 104 105 <xsl:template match="BCUNIT_ALL_TEST_LISTING_GROUP_DEFINITION"> 106 <tr> 107 <td width="10%" bgcolor="#f0e0f0"> Suite </td> 108 <td width="20%" bgcolor="#e0f0f0" > 109 <b> <xsl:value-of select="GROUP_NAME" /> </b> 110 </td> 111 112 <td width="15%" bgcolor="#f0e0f0"> Initialize Function? </td> 113 <td width="5%" bgcolor="#e0f0f0"> 114 <xsl:value-of select="INITIALIZE_VALUE" /> 115 </td> 116 117 <td width="15%" bgcolor="#f0e0f0"> Cleanup Function? </td> 118 <td width="5%" bgcolor="#e0f0f0"> 119 <xsl:value-of select="CLEANUP_VALUE" /> 120 </td> 121 122 <td width="10%" bgcolor="#f0e0f0"> Test Count </td> 123 <td width="5%" bgcolor="#e0f0f0"> 124 <xsl:value-of select="TEST_COUNT_VALUE" /> 125 </td> 126 </tr> 127 </xsl:template> 128 129 <xsl:template match="BCUNIT_ALL_TEST_LISTING_GROUP_TESTS"> 130 <tr> 131 <td align="center" bgcolor="#e0f0d0"> Test Cases </td> 132 <td align="left" colspan="7" bgcolor="#e0e0d0"> 133 <xsl:for-each select="TEST_CASE_NAME"> 134 <xsl:apply-templates/> <br /> 135 </xsl:for-each> 136 </td> 137 </tr> 138 <tr bgcolor="#00ccff"> 139 <td colspan="8"> </td> 140 </tr> 141 </xsl:template> 142 143 <xsl:template match="BCUNIT_FOOTER"> 144 <p/> 145 <hr align="center" width="90%" color="maroon" /> 146 <h5 align="center"> 147 <xsl:apply-templates/> 148 </h5> 149 </xsl:template> 150 151</xsl:stylesheet> 152