Re: 回复: [PHP-QA] SKIPIF and include proble m for an extension test with phpt
| From: | Matt Ingenthron | Date: | Mon, 13 Aug 2012 08:37:14 +0000 |
| Subject: | Re: 回复: [PHP-QA] SKIPIF and include proble m for an extension test with phpt | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-66680@lists.php.net to get a copy of this message | ||
On 8/12/12 8:58 PM, "Reeze Xia" <reeze.xia@gmail.com<mailto:reeze.xia@gmail.com>> wrote:
honestly, when I debug my test. I hack the run-test.php script:
$ vim run-test.php
and debug at LINE: 1487
$output = system_with_timeout("$extra $php $pass_options -q $ini_settings -d display_errors=0
\"$test_skipif\"", $env);
eg; echo $output;exit;
try to get the command then run it manually. you will get the skip section's output.
Thanks, that tip worked for me too. Hacking the skipif worked.
It would be nice if phpt retained that output somewhere too, but that's not the way it is.
Thanks again,
Matt
Yes it's a little annoy, but it works for me :)
--
reeze | http://reeze.cn
在 2012年8月13日星期一,上午11:46,Matt Ingenthron 写道:
On 8/12/12 7:30 PM, "Reeze Xia" <reeze.xia@gmail.com<mailto:reeze.xia@gmail.com>> wrote:
Hi Matt,
You could try:
$ make test TESTS="--keep-all"
# or specify the test case
$ make test TESTS="tests/035.phpt --keep-all"
This will save the skipif section into a php script, eg: tests/001-your-test.skip.php.
Then you could debug with them. more info:
Thanks Reeze, that helps but I still have to run that script all on my own I guess? This
doesn't seem to save the output from running the generated 035.skip.php.
It's slightly harder because I'll need to chase down how the makefile is setting up the
PHP env, or install the extension each time.
Thanks for the suggestion though!
Any other suggestions on making this easier are welcome. Or the fix :)
Matt