summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorShane Caraveo <shane@php.net>2002-10-28 02:00:56 +0000
committerShane Caraveo <shane@php.net>2002-10-28 02:00:56 +0000
commit3034c319343eb31c8bcab0558f5dae6daabfd630 (patch)
tree081332208070d2356cc3412f83bb4d0f10222840 /run-tests.php
parentc82c6263e8b2ab9744bbe45a8a6d118350b6b1fe (diff)
downloadphp-git-3034c319343eb31c8bcab0558f5dae6daabfd630.tar.gz
windows will not have these, so dont bother, but add an OS to the stuff so that it makes sense why they are N/A
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php18
1 files changed, 13 insertions, 5 deletions
diff --git a/run-tests.php b/run-tests.php
index 7cd31b3ec6..68bd6d032b 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -286,11 +286,19 @@ if ($sum_results['FAILED'] && !getenv('NO_INTERACTION')) {
$failed_tests_data = '';
$sep = "\n" . str_repeat('=', 80) . "\n";
- $failed_tests_data .= "Automake:\n". shell_exec('automake --version'). "\n";
- $failed_tests_data .= "Autoconf:\n". shell_exec('autoconf --version'). "\n";
- $failed_tests_data .= "Libtool:\n". shell_exec('libtool --version'). "\n";
- $failed_tests_data .= "Bison:\n". shell_exec('bison --version'). "\n";
- $failed_tests_data .= "Compiler:\n". shell_exec(getenv('CC').' -v 2>&1'). "\n";
+ $failed_tests_data .= "OS:\n". PHP_OS. "\n";
+ $automake = $autoconf = $libtool = $compiler = 'N/A';
+ if (substr(PHP_OS, 0, 3) != "WIN") {
+ $automake = shell_exec('automake --version');
+ $autoconf = shell_exec('autoconf --version');
+ $libtool = shell_exec('libtool --version');
+ $compiler = shell_exec(getenv('CC').' -v 2>&1');
+ }
+ $failed_tests_data .= "Automake:\n$automake\n";
+ $failed_tests_data .= "Autoconf:\n$autoconf\n";
+ $failed_tests_data .= "Libtool:\n$libtool\n";
+ $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";