blob: 4ddee00aab27ffaa898dad6c209895c251403498 [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";
16$prefixForVariable = "test_";
17$compileSummary = simplexml_load_file($filename);
18foreach ($compileSummary->summaryItem as $summaryItem) {
19 $name = $summaryItem->name;
20 $value = $summaryItem->value;
21 $code= "\$" . $prefixForVariable . $name . " = " . $value . ";";
22 //echo "<br />code: " . $code;
23 eval($code);
24}
25
26if (file_exists("drops/$bValue/$innerValue/unitTestsSummary.xml")) {
27 $filename = "drops/$bValue/$innerValue/unitTestsSummary.xml";
28 $prefixForVariable = "unittest_";
29 $unitTestsSummary = simplexml_load_file($filename);
30 foreach ($unitTestsSummary->summaryItem as $summaryItem) {
31 $name = $summaryItem->name;
32 $value = $summaryItem->value;
33 $code= "\$" . $prefixForVariable . $name . " = " . $value . ";";
34 // echo "<br />code: " . $code;
35 eval($code);
36 }
37}
38else {
39 unset($unittest_grandTotalErrors, $unittest_grandTotalTests);
40}
41
42$totalCommpileErrors = $code_totalErrors + $test_totalErrors;
43$totalCompileOtherWarnings = $code_totalWarnings;
44$totalBundles = $code_totalBundles + $test_totalBundles;
45$totalForbidden = $code_totalforbiddenAccessWarningCount + $test_totalforbiddenAccessWarningCount;
46$totalDiscouraged = $code_totaldiscouragedAccessWarningCount + $test_totaldiscouragedAccessWarningCount;
47
48echo "<td width=\"6%\">($totalBundles)</td>";
49echo "<td width=\"6%\"><img src=\"../compile_err.gif\" width=\"16\" height=\"16\"/><font color=red>$totalCommpileErrors</font></td>";
50echo "<td width=\"6%\"><img src=\"../compile_warn.gif\" width=\"16\" height=\"16\"/><font color=orange>$totalCompileOtherWarnings</font></td>";
51echo "<td width=\"6%\"><img src=\"../access_err.gif\" width=\"16\" height=\"16\"/><font color=red>$totalForbidden</font></td>";
52echo "<td width=\"6%\"><img src=\"../access_warn.gif\" width=\"16\" height=\"16\"/><font color=orange>$totalDiscouraged</font></td>";
53
54if (isset($unittest_grandTotalErrors)) {
55 echo "<td width=\"6%\"><img src=\"../junit_err.gif\" width=\"16\" height=\"16\"/><font color=red>$unittest_grandTotalErrors</font></td>";
56 echo "<td width=\"6%\">($unittest_grandTotalTests)</td>";
57}
58else {
59 echo "<td width=\"6%\"><img src=\"../pending.gif\" width=\"16\" height=\"16\"/></td>";
60 echo "<td width=\"6%\"><img src=\"../pending.gif\" width=\"16\" height=\"16\"/></td>";
61}
62
63
64?>