export TEST_PHP_EXECUTABLE=/home/zoe/BUILDS/php53_dev/sapi/cli/php $TEST_PHP_EXECUTABLE /home/zoe/BUILDS/php53_dev/run-tests.php /home/zoe/BUILDS/php53_dev/ext/dom
For example - suppose I wanted to take all the tests which are there because of bug reports and just look at what the base test cases cover.
find tests -name “bug*.phpt” | xargs -i mv {} {}.bak
( Copies all the tests to test.phpt.bak ) Just for interest, the code coverage of the dom extension without the bug tests is 2101 of 4708 lines (44.6%).
Don't forget to copy the bug tests back afterwards:
find tests -name “bug*.phpt.bak” | sed 's/.bak/ /' | xargs -i mv {}.bak {}