blob: 900b20f345e6bd4f2fd9c81dd404da1d81cff616 [file] [log] [blame]
david_williams1a993892007-07-29 19:19:05 +00001
2<?php
3
david_williamsfd220c82008-01-07 07:59:37 +00004$filename = "$innerValue/compilelogsSummary.xml";
david_williams1a993892007-07-29 19:19:05 +00005$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
david_williamsfd220c82008-01-07 07:59:37 +000015$filename = "$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_williamsfd220c82008-01-07 07:59:37 +000033$filename = "$innerValue/unitTestsSummary.xml";
david_williams2cb7eb52007-09-23 07:56:24 +000034if (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>";
david_williams87c86542008-01-14 05:59:55 +000056echo "<td width=\"6%\"><img src=\"../commonPages/compile_err.gif\" width=\"16\" height=\"16\"/><font color=red>$totalCommpileErrors</font></td>";
57echo "<td width=\"6%\"><img src=\"../commonPages/compile_warn.gif\" width=\"16\" height=\"16\"/><font color=orange>$totalCompileOtherWarnings</font></td>";
58echo "<td width=\"6%\"><img src=\"../commonPages/access_err.gif\" width=\"16\" height=\"16\"/><font color=red>$totalForbidden</font></td>";
59echo "<td width=\"6%\"><img src=\"../commonPages/access_warn.gif\" width=\"16\" height=\"16\"/><font color=orange>$totalDiscouraged</font></td>";
david_williams1a993892007-07-29 19:19:05 +000060
61if (isset($unittest_grandTotalErrors)) {
david_williams87c86542008-01-14 05:59:55 +000062 echo "<td width=\"6%\"><img src=\"../commonPages/junit_err.gif\" width=\"16\" height=\"16\"/><font color=red>$unittest_grandTotalErrors</font></td>";
david_williams1a993892007-07-29 19:19:05 +000063 echo "<td width=\"6%\">($unittest_grandTotalTests)</td>";
64}
65else {
david_williams87c86542008-01-14 05:59:55 +000066 echo "<td width=\"6%\"><img src=\"../commonPages/pending.gif\" width=\"16\" height=\"16\"/></td>";
67 echo "<td width=\"6%\"><img src=\"../commonPages/pending.gif\" width=\"16\" height=\"16\"/></td>";
david_williams1a993892007-07-29 19:19:05 +000068}
69
70
71?>