mirror of
https://github.com/php/php-src.git
synced 2025-01-22 11:44:09 +08:00
* 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:
parent
83ba61245c
commit
fad9bab629
@ -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 \
|
||||
|
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user