Re: run-tests.php is broken

From: Date: Tue, 03 Sep 2002 00:42:03 +0000
Subject: Re: run-tests.php is broken
References: 1 2 3 4 5 6 7  Groups: php.qa 
Request: Send a blank email to php-qa+get-5921@lists.php.net to get a copy of this message
Sander Roobol wrote:
On Mon, Sep 02, 2002 at 06:31:00AM +0900, Yasuo Ohgaki wrote:
Sander Roobol wrote:
run-tests.php was never supposed to be run directly. ./run-tests.php doesn't have a hashbang line and it never had.
No. It is supposed to be run directly. Therefore, it is broken.
Check http://cvs.php.net/cvs.php/php4/run-tests.php I don't find any version there that begins with a hasbang line... README.TESTING also doesn't say you can run it directly...
Oops. I wrote it, but I've posted wrong usage by mistake :( ./sapi/cli/php -c /path/to/php.ini/ run-tests.php [ext/some_extension_name] should work w/o setting Env var. Why use env var? sed can be used, for example.
Why do you think it's supposed to?
I don't mind if there is a shell script for this or "make test ext/some" as long as it is documented in README.TESTING. (It seems someone is trying to make "make test ext/some" work, but it seems it does not work) Test scripts are not only for QA, but for development. It should be able to be run part of tests easily and the behaviors/changes must be documented well. IMHO. -- Yasuo OHgaki

« previous php.qa (#5921) next »