| <html> |
| |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| </head> |
| |
| <body> |
| |
| <?php include("global.php"); ?> |
| |
| <table> |
| <tr> |
| <td> </td> |
| </tr> |
| </table> |
| |
| <TABLE BORDER=0 CELLSPACING=5 CELLPADDING=2 WIDTH="100%"> |
| <TR> |
| <TD ALIGN=LEFT VALIGN=TOP COLSPAN="3" BGCOLOR="#0080C0"><B><FONT COLOR="#FFFFFF" FACE="Arial,Helvetica">Detailed performance data for</FONT></B></TD> |
| </TR> |
| </TABLE> |
| |
| <?php |
| $aDir = dir("."); |
| while ($anEntry = $aDir->read()) |
| { |
| $len = strlen("org.eclipse.php"); |
| if (strlen($anEntry) > $len) |
| { |
| if (substr($anEntry, 0, 12) == "org.eclipse.") |
| { |
| echo "<a href=\"$anEntry\">$anEntry</a><br>"; |
| } |
| } |
| } |
| ?> |
| |
| <table> |
| <tr> |
| <td> </td> |
| </tr> |
| </table> |
| |
| <TABLE BORDER=0 CELLSPACING=5 CELLPADDING=2 WIDTH="100%"> |
| <TR> |
| <TD ALIGN=LEFT VALIGN=TOP COLSPAN="3" BGCOLOR="#0080C0"><B><FONT COLOR="#FFFFFF" FACE="Arial,Helvetica">Performance Unit Test Results for</FONT></B></TD> |
| </TR> |
| </TABLE> |
| |
| <TABLE BORDER=1 CELLSPACING=5 CELLPADDING=2 WIDTH="100%"> |
| <TH>Tests Performed</TH> |
| <TH>Testcases</TH> |
| <TH>Errors and Failures</TH> |
| <?php |
| $aDir = dir("../xml"); |
| while ($anEntry = $aDir->read()) |
| { |
| if ($anEntry != "." && $anEntry != "..") |
| { |
| echo "<tr>"; |
| $html = substr($anEntry, 0, strlen($anEntry) - 3) . "html"; |
| echo "<td><a href=\"../html/$html\">$html</a></td>"; |
| $file = "../xml/" . $anEntry; |
| $filehandle = fopen($file, "r"); |
| $filecontent = fread($filehandle, filesize($file)); |
| $tc = substr_count($filecontent, "<testcase"); |
| echo "<td>$tc</td>"; |
| $error = substr_count($filecontent, "<error"); |
| $failure = substr_count($filecontent, "<failure"); |
| $total = $error + $failure; |
| echo "<td>$total</td>"; |
| echo "</tr>"; |
| } |
| } |
| ?> |
| </TABLE> |
| |
| </body> |
| |
| </html> |