cvs: php-src(PHP_4_4) / run-tests.php
| From: | Jani Taskinen | Date: | Sat, 18 Jun 2005 22:54:08 +0000 |
| Subject: | cvs: php-src(PHP_4_4) / run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-32384@lists.php.net to get a copy of this message | ||
sniper Sat Jun 18 18:54:08 2005 EDT
Modified files: (Branch: PHP_4_4)
/php-src run-tests.php
Log:
fix VPATH testing (partial MFH)
http://cvs.php.net/diff.php/php-src/run-tests.php?r1=1.119.2.39&r2=1.119.2.39.2.1&ty=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.119.2.39 php-src/run-tests.php:1.119.2.39.2.1
--- php-src/run-tests.php:1.119.2.39 Wed Apr 6 18:16:11 2005
+++ php-src/run-tests.php Sat Jun 18 18:54:07 2005
@@ -57,6 +57,9 @@
exit;
}
+// store current directory
+$CUR_DIR = getcwd();
+
// change into the PHP source directory.
if (getenv('TEST_PHP_SRCDIR')) {
@@ -407,8 +410,10 @@
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 @@
$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);