cvs: php4 / run-tests.php
| From: | Marcus Boerger | Date: | Fri, 15 Nov 2002 15:57:00 +0000 |
| Subject: | cvs: php4 / run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-16267@lists.php.net to get a copy of this message | ||
helly Fri Nov 15 10:57:00 2002 EDT
Modified files:
/php4 run-tests.php
Log:
-Allow skip in upper letters.
-Add 'info' result to --SKIPIF-- -> see following dba commits
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.124 php4/run-tests.php:1.125
--- php4/run-tests.php:1.124 Fri Nov 15 09:23:40 2002
+++ php4/run-tests.php Fri Nov 15 10:57:00 2002
@@ -534,7 +534,7 @@
save_text($tmp_skipif, $section_text['SKIPIF']);
$output =
$php $info_params $tmp_skipif;
@unlink($tmp_skipif);
- if (ereg("^skip", trim($output))){
+ if (ereg("^skip", strtolower(trim($output)))) {
echo "SKIP $tested";
$reason = (ereg("^skip[[:space:]]*(.+)\$", trim($output))) ?
ereg_replace("^skip[[:space:]]*(.+)\$", "\\1", trim($output)) : FALSE;
if ($reason) {
@@ -543,6 +543,12 @@
echo "\n";
}
return 'SKIPPED';
+ }
+ if (ereg("^info", strtolower(trim($output)))) {
+ $reason = (ereg("^info[[:space:]]*(.+)\$", trim($output))) ?
ereg_replace("^info[[:space:]]*(.+)\$", "\\1", trim($output)) : FALSE;
+ if ($reason) {
+ $tested .= " (info: $reason)";
+ }
}
}
}