cvs: php4 / run-tests.php
| From: | Sander Roobol | Date: | Fri, 15 Nov 2002 10:37:41 +0000 |
| Subject: | cvs: php4 / run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-16224@lists.php.net to get a copy of this message | ||
sander Fri Nov 15 05:37:41 2002 EDT
Modified files:
/php4 run-tests.php
Log:
Move the build-environment stuff down or the test results up, so you
don't need to scroll down to see the failed tests.
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.122 php4/run-tests.php:1.123
--- php4/run-tests.php:1.122 Thu Nov 14 16:02:24 2002
+++ php4/run-tests.php Fri Nov 15 05:37:41 2002
@@ -335,7 +335,17 @@
$failed_tests_data = '';
$sep = "\n" . str_repeat('=', 80) . "\n";
- $failed_tests_data .= "OS:\n". PHP_OS. "\n";
+ $failed_tests_data .= $failed_test_summary . "\n";
+
+ foreach ($GLOBALS['__PHP_FAILED_TESTS__'] as $test_info) {
+ $failed_tests_data .= $sep . $test_info['name'];
+ $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";
+ }
+
+ $failed_tests_data .= "\n" . $sep . 'BUILD ENVIRONMENT' . $sep;
+ $failed_tests_data .= "OS:\n". PHP_OS. "\n\n";
$automake = $autoconf = $libtool = $compiler = 'N/A';
if (substr(PHP_OS, 0, 3) != "WIN") {
$automake = shell_exec('automake --version');
@@ -358,15 +368,6 @@
$failed_tests_data .= "Compiler:\n$compiler\n";
$failed_tests_data .= "Bison:\n". @shell_exec('bison --version').
"\n";
$failed_tests_data .= "\n\n";
-
- $failed_tests_data .= $failed_test_summary . "\n";
-
- foreach ($GLOBALS['__PHP_FAILED_TESTS__'] as $test_info) {
- $failed_tests_data .= $sep . $test_info['name'];
- $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";
- }
$failed_tests_data .= $sep . "PHPINFO" . $sep;
$failed_tests_data .= shell_exec($php.' -dhtml_errors=0 -i');