]> granicus.if.org Git - php/commitdiff
fix VPATH testing (partial MFH)
authorfoobar <sniper@php.net>
Sat, 18 Jun 2005 22:54:07 +0000 (22:54 +0000)
committerfoobar <sniper@php.net>
Sat, 18 Jun 2005 22:54:07 +0000 (22:54 +0000)
run-tests.php

index 667d37463bfddb70da1f853e4bc160d2e40586c0..c6aee942ab609b3573d0d3841a5ad2b4921fa4b9 100755 (executable)
@@ -57,6 +57,9 @@ NO_PCRE_ERROR;
 exit;
 }
 
+// store current directory
+$CUR_DIR = getcwd();
+
 // change into the PHP source directory.
 
 if (getenv('TEST_PHP_SRCDIR')) {
@@ -407,8 +410,10 @@ if (!getenv('NO_INTERACTION')) {
                if (substr(PHP_OS, 0, 3) != "WIN") {
                        $automake = shell_exec('automake --version');
                        $autoconf = shell_exec('autoconf --version');
+
                        /* Always use the generated libtool - Mac OSX uses 'glibtool' */
-                       $libtool = shell_exec('./libtool --version');
+                       $libtool = shell_exec($CUR_DIR . '/libtool --version');
+
                        /* Try the most common flags for 'version' */
                        $flags = array('-v', '-V', '--version');
                        $cc_status=0;
@@ -439,7 +444,7 @@ if (!getenv('NO_INTERACTION')) {
                $compression = 0;
                
                if ($just_save_results || !mail_qa_team($failed_tests_data, $compression, $status)) {
-                       $output_file = 'php_test_results_' . date('Ymd') . ( $compression ? '.txt.gz' : '.txt' );
+                       $output_file = $CUR_DIR . '/php_test_results_' . date('Ymd_Hi') . ( $compression ? '.txt.gz' : '.txt' );
                        $fp = fopen($output_file, "w");
                        fwrite($fp, $failed_tests_data);
                        fclose($fp);