david_williams | 1a99389 | 2007-07-29 19:19:05 +0000 | [diff] [blame] | 1 | |
| 2 | <?php |
| 3 | |
| 4 | $filename = "drops/$bValue/$innerValue/compilelogsSummary.xml"; |
| 5 | $prefixForVariable = "code_"; |
| 6 | $compileSummary = simplexml_load_file($filename); |
| 7 | foreach ($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_williams | 38cdb42 | 2007-09-23 06:24:37 +0000 | [diff] [blame] | 16 | if (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_williams | 1a99389 | 2007-07-29 19:19:05 +0000 | [diff] [blame] | 31 | } |
| 32 | |
david_williams | 2cb7eb5 | 2007-09-23 07:56:24 +0000 | [diff] [blame] | 33 | $filename = "drops/$bValue/$innerValue/unitTestsSummary.xml"; |
| 34 | if (file_exists("$filename")) { |
david_williams | 1a99389 | 2007-07-29 19:19:05 +0000 | [diff] [blame] | 35 | $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 | } |
| 45 | else { |
| 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 | |
| 55 | echo "<td width=\"6%\">($totalBundles)</td>"; |
| 56 | echo "<td width=\"6%\"><img src=\"../compile_err.gif\" width=\"16\" height=\"16\"/><font color=red>$totalCommpileErrors</font></td>"; |
| 57 | echo "<td width=\"6%\"><img src=\"../compile_warn.gif\" width=\"16\" height=\"16\"/><font color=orange>$totalCompileOtherWarnings</font></td>"; |
| 58 | echo "<td width=\"6%\"><img src=\"../access_err.gif\" width=\"16\" height=\"16\"/><font color=red>$totalForbidden</font></td>"; |
| 59 | echo "<td width=\"6%\"><img src=\"../access_warn.gif\" width=\"16\" height=\"16\"/><font color=orange>$totalDiscouraged</font></td>"; |
| 60 | |
| 61 | if (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 | } |
| 65 | else { |
| 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 | ?> |