blob: 7b26255e7f266ea831457f8f492323edc43c8c89 [file] [log] [blame]
david_williams1a993892007-07-29 19:19:05 +00001
2<?php
3
4$filename = "drops/$bValue/$innerValue/compilelogsSummary.xml";
5$prefixForVariable = "code_";
6$compileSummary = simplexml_load_file($filename);
7foreach ($compileSummary->summaryItem as $summaryItem) {
8 $name = $summaryItem->name;
9 $value = $summaryItem->value;
10 $code= "\$" . $prefixForVariable . $name . " = " . $value . ";";
11 //echo "<br />code: " . $code;
12 eval($code);
13}
14
15$filename = "drops/$bValue/$innerValue/testcompilelogsSummary.xml";
david_williams38cdb422007-09-23 06:24:37 +000016if (file_exists($filename)) {
17 $prefixForVariable = "test_";
18 $compileSummary = simplexml_load_file($filename);
19 foreach ($compileSummary->summaryItem as $summaryItem) {
20 $name = $summaryItem->name;
21 $value = $summaryItem->value;
22 $code= "\$" . $prefixForVariable . $name . " = " . $value . ";";
23 //echo "<br />code: " . $code;
24 eval($code);
25 }
26} else {
27 $test_totalErrors = 0;
28 $test_totalBundles = 0;
29 $test_totalforbiddenAccessWarningCount = 0;
30 $test_totaldiscouragedAccessWarningCount = 0;
david_williams1a993892007-07-29 19:19:05 +000031}
32
david_williams2cb7eb52007-09-23 07:56:24 +000033$filename = "drops/$bValue/$innerValue/unitTestsSummary.xml";
34if (file_exists("$filename")) {
david_williams1a993892007-07-29 19:19:05 +000035 $prefixForVariable = "unittest_";
36 $unitTestsSummary = simplexml_load_file($filename);
37 foreach ($unitTestsSummary->summaryItem as $summaryItem) {
38 $name = $summaryItem->name;
39 $value = $summaryItem->value;
40 $code= "\$" . $prefixForVariable . $name . " = " . $value . ";";
41 // echo "<br />code: " . $code;
42 eval($code);
43 }
44}
45else {
46 unset($unittest_grandTotalErrors, $unittest_grandTotalTests);
47}
48
49$totalCommpileErrors = $code_totalErrors + $test_totalErrors;
50$totalCompileOtherWarnings = $code_totalWarnings;
51$totalBundles = $code_totalBundles + $test_totalBundles;
52$totalForbidden = $code_totalforbiddenAccessWarningCount + $test_totalforbiddenAccessWarningCount;
53$totalDiscouraged = $code_totaldiscouragedAccessWarningCount + $test_totaldiscouragedAccessWarningCount;
54
55echo "<td width=\"6%\">($totalBundles)</td>";
56echo "<td width=\"6%\"><img src=\"../compile_err.gif\" width=\"16\" height=\"16\"/><font color=red>$totalCommpileErrors</font></td>";
57echo "<td width=\"6%\"><img src=\"../compile_warn.gif\" width=\"16\" height=\"16\"/><font color=orange>$totalCompileOtherWarnings</font></td>";
58echo "<td width=\"6%\"><img src=\"../access_err.gif\" width=\"16\" height=\"16\"/><font color=red>$totalForbidden</font></td>";
59echo "<td width=\"6%\"><img src=\"../access_warn.gif\" width=\"16\" height=\"16\"/><font color=orange>$totalDiscouraged</font></td>";
60
61if (isset($unittest_grandTotalErrors)) {
62 echo "<td width=\"6%\"><img src=\"../junit_err.gif\" width=\"16\" height=\"16\"/><font color=red>$unittest_grandTotalErrors</font></td>";
63 echo "<td width=\"6%\">($unittest_grandTotalTests)</td>";
64}
65else {
66 echo "<td width=\"6%\"><img src=\"../pending.gif\" width=\"16\" height=\"16\"/></td>";
67 echo "<td width=\"6%\"><img src=\"../pending.gif\" width=\"16\" height=\"16\"/></td>";
68}
69
70
71?>