* Added "test" make target so you can do "make test" in any directory.

* Added copyright header to run-test.php
This commit is contained in:
Stig Bakken 2000-08-29 09:12:44 +00:00
parent 83ba61245c
commit fad9bab629
4 changed files with 25 additions and 2 deletions

View File

@ -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 \

View File

@ -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

View File

@ -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)

View File

@ -1,4 +1,23 @@
<?php
/*
+----------------------------------------------------------------------+
| PHP version 4.0 |
+----------------------------------------------------------------------+
| Copyright (c) 1997, 1998, 1999, 2000 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 2.02 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available at through the world-wide-web at |
| http://www.php.net/license/2_02.txt. |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Stig Bakken <ssb@fast.no> |
| (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;