From: Stig Bakken Date: Tue, 29 Aug 2000 09:12:44 +0000 (+0000) Subject: * Added "test" make target so you can do "make test" in any directory. X-Git-Tag: php-4.0.2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fad9bab629b93a81213d79da7b62994d0ba0f5b1;p=php * Added "test" make target so you can do "make test" in any directory. * Added copyright header to run-test.php --- diff --git a/build/rules.mk b/build/rules.mk index 86ec3af37e..4699e32a50 100644 --- a/build/rules.mk +++ b/build/rules.mk @@ -53,6 +53,9 @@ distclean: distclean-recursive clean-x rm -f config.cache config.log config.status config_vars.mk libtool \ php_config.h stamp-h Makefile build-defs.h php4.spec libphp4.module +test: $(top_builddir)/php + @$(top_builddir)/php -f $(top_srcdir)/run-tests.php `pwd` + include $(builddir)/.deps .PHONY: all-recursive clean-recursive install-recursive \ diff --git a/build/rules_common.mk b/build/rules_common.mk index 5c2b7129be..6e8cf24d22 100644 --- a/build/rules_common.mk +++ b/build/rules_common.mk @@ -37,7 +37,7 @@ DEFS = -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)/main moduledir = $(EXTENSION_DIR) CXX_SUFFIX = .cpp - + .SUFFIXES: .SUFFIXES: .slo .c $(CXX_SUFFIX) .lo .o .s .y .l diff --git a/configure.in b/configure.in index b210957be7..78ef857f85 100644 --- a/configure.in +++ b/configure.in @@ -552,7 +552,6 @@ if test "$PHP_PEAR" = "yes"; then fi PHP_OUTPUT(pear/pear) -PHP_OUTPUT(pear/run-tests) PHP_OUTPUT(pear/phpize) PHP_OUTPUT(pear/php-config) PHP_OUTPUT(pear/PEAR.php) diff --git a/run-tests.php b/run-tests.php index b80c4b72b3..2bb1898479 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1,4 +1,23 @@ | + | (based on the PHP 3 test framework by Rasmus Lerdorf) | + +----------------------------------------------------------------------+ + */ + define('TEST_PASSED', 0); define('TEST_FAILED', -1); @@ -6,11 +25,13 @@ define('TEST_SKIPPED', -2); define('TEST_INTERNAL_ERROR', -3); initialize(); +/* $opts = parse_options(&$argc, &$argv); if ($opts['help']) { usage(); exit; } +*/ do_testing($argc, &$argv); exit;