diff options
| author | foobar <sniper@php.net> | 2005-08-08 16:06:49 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2005-08-08 16:06:49 +0000 |
| commit | ee5fd96e37a1396e87f8bcfd55ef22a5043a0794 (patch) | |
| tree | c53f340d1ec4b9ead6b95534f79ec5bef2d48f7f /Makefile.global | |
| parent | 0f2986fe9d53903bfb1bb2b8988055545b5fdb83 (diff) | |
| download | php-git-ee5fd96e37a1396e87f8bcfd55ef22a5043a0794.tar.gz | |
- Made it possible to do "make test" for phpized extensions
Diffstat (limited to 'Makefile.global')
| -rw-r--r-- | Makefile.global | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile.global b/Makefile.global index 160dc5b6a0..d4a92a2e27 100644 --- a/Makefile.global +++ b/Makefile.global @@ -45,15 +45,15 @@ install-modules: build-modules @rm -f modules/*.la >/dev/null 2>&1 @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) -install-tester: - @echo "Installing regression tester: $(INSTALL_ROOT)$(PEAR_INSTALLDIR)/" - @$(mkinstalldirs) $(INSTALL_ROOT)$(PEAR_INSTALLDIR) - @$(INSTALL) -m 755 $(top_srcdir)/run-tests.php $(INSTALL_ROOT)$(PEAR_INSTALLDIR) - -install-su: install-pear install-tester +install-su: install-pear test: - -@if test -x $(SAPI_CLI_PATH) && test ! -z $(SAPI_CLI_PATH); then \ + -@if test ! -z $(PHP_EXECUTABLE) && test -x $(PHP_EXECUTABLE); then \ + TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \ + TEST_PHP_SRCDIR=$(top_srcdir) \ + CC="$(CC)" \ + $(PHP_EXECUTABLE) -d 'extension_dir=modules/' -d 'extension='`basename $(PHP_MODULES) .la`'.so' -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php tests/; \ + elif test ! -z $(SAPI_CLI_PATH) && test -x $(SAPI_CLI_PATH); then \ TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \ TEST_PHP_SRCDIR=$(top_srcdir) \ CC="$(CC)" \ |
