cvs: php4 / Makefile.global run-tests.php
| From: | Stefan Esser | Date: | Tue, 22 Oct 2002 18:53:56 +0000 |
| Subject: | cvs: php4 / Makefile.global run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-15161@lists.php.net to get a copy of this message | ||
sesser Tue Oct 22 14:53:56 2002 EDT
Modified files:
/php4 Makefile.global run-tests.php
Log:
fix make test for an external build dir setup
Index: php4/Makefile.global
diff -u php4/Makefile.global:1.32 php4/Makefile.global:1.33
--- php4/Makefile.global:1.32 Mon Oct 21 20:18:26 2002
+++ php4/Makefile.global Tue Oct 22 14:53:56 2002
@@ -48,6 +48,7 @@
test: $(SAPI_CLI_PATH)
@TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
+ TEST_PHP_SRCDIR=$(top_srcdir) \
$(top_builddir)/$(SAPI_CLI_PATH) $(top_srcdir)/run-tests.php $(TESTS)
clean:
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.80 php4/run-tests.php:1.81
--- php4/run-tests.php:1.80 Tue Oct 22 04:54:23 2002
+++ php4/run-tests.php Tue Oct 22 14:53:56 2002
@@ -36,6 +36,12 @@
* - do not test PEAR components if base class and/or component class cannot be instanciated
*/
+// change into the PHP source directory.
+
+if (getenv('TEST_PHP_SRCDIR')) {
+ @chdir(getenv('TEST_PHP_SRCDIR'));
+}
+
$cwd = getcwd();
set_time_limit(0);
ob_implicit_flush();