Re: CGI tests
| From: | Hannes Magnusson | Date: | Sun, 19 Jul 2009 15:26:33 +0000 |
| Subject: | Re: CGI tests | ||
| References: | 1 2 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-65227@lists.php.net to get a copy of this message | ||
On Sat, Jul 18, 2009 at 13:14, Nuno Lopes<nlopess@php.net> wrote:
> You're totally right. Those checks can be safely removed. run-tests.php is
> responsible for skiping them.
> Extra junk (and very small tests) only serve to slow down the testing
> process, which already takes too much time.
An extra millisecond for maybe 50tests is no big deal while we have
tests that take 30-60seconds...
>> If run-tests.php detects that the test requires the CGI sapi (which it
>> does by checking for the presence of GET, POST etc sections), then it will
>> try and use the CGI executable to run the SKIPIF section, if there isn't a
>> php-cgi available it won't be able to :-) So the check would never be
>> executed.
But if I run it directly using php-cli then it will bail out and I see
right away why..
-Hannes