cvs: php4(PHP_4_3) / run-tests.php
| From: | Marcus Boerger | Date: | Sat, 17 May 2003 11:32:23 +0000 |
| Subject: | cvs: php4(PHP_4_3) / run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20990@lists.php.net to get a copy of this message | ||
helly Sat May 17 07:32:23 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4 run-tests.php
Log:
Mail too
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.119.2.25 php4/run-tests.php:1.119.2.26
--- php4/run-tests.php:1.119.2.25 Tue May 6 16:22:17 2003
+++ php4/run-tests.php Sat May 17 07:32:22 2003
@@ -336,7 +336,7 @@
---------------------------------------------------------------------
";
foreach ($GLOBALS['__PHP_FAILED_TESTS__'] as $failed_test_data) {
- $failed_test_summary .= $failed_test_data['test_name'] . "\n";
+ $failed_test_summary .= $failed_test_data['test_name'] .
$failed_test_data['info'] . "\n";
}
$failed_test_summary .=
"=====================================================================\n";
}
@@ -385,7 +385,7 @@
if ($sum_results['FAILED']) {
foreach ($GLOBALS['__PHP_FAILED_TESTS__'] as $test_info) {
- $failed_tests_data .= $sep . $test_info['name'];
+ $failed_tests_data .= $sep . $test_info['name'] . $test_info['info'];
$failed_tests_data .= $sep . file_get_contents(realpath($test_info['output']));
$failed_tests_data .= $sep . file_get_contents(realpath($test_info['diff']));
$failed_tests_data .= $sep . "\n\n";
@@ -591,6 +591,7 @@
putenv("CONTENT_LENGTH=");
// Check if test should be skipped.
+ $info = '';
if (array_key_exists('SKIPIF', $section_text)) {
if (trim($section_text['SKIPIF'])) {
save_text($tmp_skipif, $section_text['SKIPIF']);
@@ -609,7 +610,8 @@
if (eregi("^info", trim($output))) {
$reason = (ereg("^info[[:space:]]*(.+)\$", trim($output))) ?
ereg_replace("^info[[:space:]]*(.+)\$", "\\1", trim($output)) : FALSE;
if ($reason) {
- $tested .= " (info: $reason)";
+ $info = " (info: $reason)";
+ $tested .= $info;
}
}
}
@@ -731,7 +733,8 @@
'name' => $file,
'test_name' => $tested,
'output' => ereg_replace('\.phpt$','.log', $file),
- 'diff' => ereg_replace('\.phpt$','.diff', $file)
+ 'diff' => ereg_replace('\.phpt$','.diff', $file),
+ 'info' => $info
);
// write .exp