cvs: php-testfest-web /scripts/testfestsource/src displayresults.php
| From: | Zoe Slattery | Date: | Sat, 23 May 2009 17:28:47 +0000 |
| Subject: | cvs: php-testfest-web /scripts/testfestsource/src displayresults.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-4851@lists.php.net to get a copy of this message | ||
zoe Sat May 23 17:28:47 2009 UTC
Modified files:
/php-testfest-web/scripts/testfestsource/src displayresults.php
Log:
add total committed
http://cvs.php.net/viewvc.cgi/php-testfest-web/scripts/testfestsource/src/displayresults.php?r1=1.3&r2=1.4&diff_format=u
Index: php-testfest-web/scripts/testfestsource/src/displayresults.php
diff -u php-testfest-web/scripts/testfestsource/src/displayresults.php:1.3
php-testfest-web/scripts/testfestsource/src/displayresults.php:1.4
--- php-testfest-web/scripts/testfestsource/src/displayresults.php:1.3 Mon May 18 16:10:59 2009
+++ php-testfest-web/scripts/testfestsource/src/displayresults.php Sat May 23 17:28:47 2009
@@ -61,6 +61,7 @@
//get the list of committed files
$testNames = file($publishDir . "/commits");
+$totalCommittedTests = count($testNames);
$committedTests = array();
foreach ($testNames as $line) {
@@ -72,13 +73,14 @@
$_SESSION['filebase'] = $filebase;
$_SESSION['relat'] = $relat;
-$summary = buildSummary($relat);
+$summary = buildSummary($relat, $totalCommittedTests);
echo $summary;
+
$out = buildSummaryTable($states, $relat, $filebase, $committedTests);
echo $out;
-function buildSummary($relat) {
+function buildSummary($relat, $totalCommittedTests) {
$groups = array();
foreach($relat as $testname) {
preg_match("/.*_(\w+)$/", $testname, $matches);
@@ -95,7 +97,9 @@
$totalTests += $numberOfTests;
$htmlString .= "Tests from group $groupName = $numberOfTests<br>";
}
-$htmlString .= "<br><b>Total tests contributed =
$totalTests</b><br><br>";
+$htmlString .= "<br><b>Total tests contributed =
$totalTests</b><br>";
+
+$htmlString .= "<br><b>Total tests moved to PHP CVS =
$totalCommittedTests</b><br><br>";
return $htmlString;
}