blob: 4ddee00aab27ffaa898dad6c209895c251403498 [file] [log] [blame]
<?php
$filename = "drops/$bValue/$innerValue/compilelogsSummary.xml";
$prefixForVariable = "code_";
$compileSummary = simplexml_load_file($filename);
foreach ($compileSummary->summaryItem as $summaryItem) {
$name = $summaryItem->name;
$value = $summaryItem->value;
$code= "\$" . $prefixForVariable . $name . " = " . $value . ";";
//echo "<br />code: " . $code;
eval($code);
}
$filename = "drops/$bValue/$innerValue/testcompilelogsSummary.xml";
$prefixForVariable = "test_";
$compileSummary = simplexml_load_file($filename);
foreach ($compileSummary->summaryItem as $summaryItem) {
$name = $summaryItem->name;
$value = $summaryItem->value;
$code= "\$" . $prefixForVariable . $name . " = " . $value . ";";
//echo "<br />code: " . $code;
eval($code);
}
if (file_exists("drops/$bValue/$innerValue/unitTestsSummary.xml")) {
$filename = "drops/$bValue/$innerValue/unitTestsSummary.xml";
$prefixForVariable = "unittest_";
$unitTestsSummary = simplexml_load_file($filename);
foreach ($unitTestsSummary->summaryItem as $summaryItem) {
$name = $summaryItem->name;
$value = $summaryItem->value;
$code= "\$" . $prefixForVariable . $name . " = " . $value . ";";
// echo "<br />code: " . $code;
eval($code);
}
}
else {
unset($unittest_grandTotalErrors, $unittest_grandTotalTests);
}
$totalCommpileErrors = $code_totalErrors + $test_totalErrors;
$totalCompileOtherWarnings = $code_totalWarnings;
$totalBundles = $code_totalBundles + $test_totalBundles;
$totalForbidden = $code_totalforbiddenAccessWarningCount + $test_totalforbiddenAccessWarningCount;
$totalDiscouraged = $code_totaldiscouragedAccessWarningCount + $test_totaldiscouragedAccessWarningCount;
echo "<td width=\"6%\">($totalBundles)</td>";
echo "<td width=\"6%\"><img src=\"../compile_err.gif\" width=\"16\" height=\"16\"/><font color=red>$totalCommpileErrors</font></td>";
echo "<td width=\"6%\"><img src=\"../compile_warn.gif\" width=\"16\" height=\"16\"/><font color=orange>$totalCompileOtherWarnings</font></td>";
echo "<td width=\"6%\"><img src=\"../access_err.gif\" width=\"16\" height=\"16\"/><font color=red>$totalForbidden</font></td>";
echo "<td width=\"6%\"><img src=\"../access_warn.gif\" width=\"16\" height=\"16\"/><font color=orange>$totalDiscouraged</font></td>";
if (isset($unittest_grandTotalErrors)) {
echo "<td width=\"6%\"><img src=\"../junit_err.gif\" width=\"16\" height=\"16\"/><font color=red>$unittest_grandTotalErrors</font></td>";
echo "<td width=\"6%\">($unittest_grandTotalTests)</td>";
}
else {
echo "<td width=\"6%\"><img src=\"../pending.gif\" width=\"16\" height=\"16\"/></td>";
echo "<td width=\"6%\"><img src=\"../pending.gif\" width=\"16\" height=\"16\"/></td>";
}
?>