]> granicus.if.org Git - php/commitdiff
* make it possible to override the start directory for "make test"
authorStig Bakken <ssb@php.net>
Thu, 7 Dec 2000 08:06:41 +0000 (08:06 +0000)
committerStig Bakken <ssb@php.net>
Thu, 7 Dec 2000 08:06:41 +0000 (08:06 +0000)
build/rules.mk

index 8459f6c0e65d19163eaa23bc4d9659d74d68938a..1b46df9b02d51f0836cc03f99e30c8e7a7d02d44 100644 (file)
@@ -54,7 +54,11 @@ distclean: distclean-recursive clean-x
        php_config.h stamp-h Makefile build-defs.h php4.spec libphp4.module
 
 test: $(top_builddir)/php
-       @$(top_builddir)/php -q $(top_srcdir)/run-tests.php `pwd`
+       @if test "$(TESTS)" = ""; then \
+               $(top_builddir)/php -q $(top_srcdir)/run-tests.php `pwd`; \
+       else \
+               $(top_builddir)/php -q $(top_srcdir)/run-tests.php $(TESTS); \
+       fi
 
 include $(builddir)/.deps