[PHP-CVS] cvs: php-src(PHP_4_4) / run-tests.php
by Jani Taskinen other posts by this author
Jun 18 2005 3:55PM messages near this date
Re: [PHP-CVS] cvs: php-src /tests/reflection 006.phpt
|
[PHP-CVS] cvs: php-src / NEWS
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);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|