blob: a42c883da36363bdb2c3138d07f268fd01265923 [file] [log] [blame]
david_williams0ecd8ec2009-11-09 04:16:21 +00001<html>
2<head>
3
4<?php
david_williamsdb9eed92009-11-18 20:03:49 +00005$parts = explode("/", realpath(".."));
6$label = $parts[count($parts) - 1];
david_williams0ecd8ec2009-11-09 04:16:21 +00007?>
8
9<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
david_williamsdb9eed92009-11-18 20:03:49 +000010<link rel="stylesheet" href="http://dev.eclipse.org/default_style.css"
11 type="text/css">
david_williams0ecd8ec2009-11-09 04:16:21 +000012</head>
13<body>
david_williamsdb9eed92009-11-18 20:03:49 +000014<p><b><font face="Verdana" size="+3">Test Results</font></b></p>
15<table border=0 cellspacing=5 cellpadding=2 width="100%">
16 <tr>
17 <td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font
18 color="#FFFFFF" face="Arial,Helvetica">Unit Test Results for <?php echo "$label"; ?>
19 </font></b></td>
20 </tr>
david_williams0ecd8ec2009-11-09 04:16:21 +000021</table>
david_williamsdb9eed92009-11-18 20:03:49 +000022<p></p>
23<table border="0">
david_williams0ecd8ec2009-11-09 04:16:21 +000024</table>
25
26<table width="77%" border="1">
david_williamsdb9eed92009-11-18 20:03:49 +000027 <tr>
28 <td width="81%"><b>Tests Performed</b></td>
29 <td width="19%"><b>Errors &amp; Failures</b></td>
30 </tr>
david_williams0ecd8ec2009-11-09 04:16:21 +000031
david_williamsdb9eed92009-11-18 20:03:49 +000032 <?
33 $dir = dir("html");
34 while ($anEntry = $dir->read())
35 {
36 if ($anEntry != "." && $anEntry != "..")
37 {
38 $link = "html/".$anEntry;
39 $xml = "xml/".substr($anEntry, 0, strlen($anEntry)-4)."xml";
40 $count = 0;
41 $fileHandle = fopen($xml, "r");
42 while (!feof($fileHandle))
43 {
44 $aLine = fgets($fileHandle, 4096); // Length parameter only optional after 4.2.0
45 $count = $count + substr_count($aLine, '<error');
46 }
47 fclose($fileHandle);
48 if ($count > 0)
49 {
50 echo "<tr><td><a href=\"$link\"><b><font color=\"red\">";
51 echo "$anEntry";
52 echo "</font></b></a></td>";
53 echo "<td><b><font color=\"red\">$count</font></b></td></tr>";
54 }
55 else
56 {
57 echo "<tr><td><a href=\"$link\">";
58 echo "$anEntry";
59 echo "</a></td>";
60 echo "<td>$count</td></tr>";
61 }
62 }
63 }
64 ?>
65
david_williams0ecd8ec2009-11-09 04:16:21 +000066</table>
67<p></p>
68<br>
david_williamsdb9eed92009-11-18 20:03:49 +000069<table border=0 cellspacing=5 cellpadding=2 width="100%">
70 <tr>
71 <td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font
72 color="#FFFFFF" face="Arial,Helvetica"> Console output logs <?php echo "$label"; ?>
73 </font></b></td>
74 </tr>
david_williams0ecd8ec2009-11-09 04:16:21 +000075</table>
76<br>
david_williamsdb9eed92009-11-18 20:03:49 +000077These
78<a href="consolelogs/wtptestlog.txt">logs</a>
79contain the console output captured while running the JUnit automated
80tests.
81<br>
david_williams0ecd8ec2009-11-09 04:16:21 +000082<br>
83
84</body>
85</html>