You need subversion, autoconf, automake, gcc, bison, flex and re2c installed,
svn co https://svn.php.net/repository/php/php-src/branches/PHP_5_4 php54
./configure (see my shell script helper below)
Then go for a run. This takes a while. When you come back, submit
the test results, but then try to track down one of the failed tests and
figure out why it failed. The tests are very simple. In the failed test
summary at the end a failed test shows up as:
CLI php -m [sapi/cli/tests/018.phpt]
That's a short description of the test and the filename of the test itself.
For a failed tests, we create some files in the test dir. Go to sapi/cli/tests
and you will find these files:
018.phpt - the full test file
018.php - the php code that was run for the test
018.out - the actual output from the test
018.exp - the output that we expected
018.diff - the diff between the actual and expected
Once you have fixed something, you can re-run the tests for just that set of
make test TESTS=sapi/cli
To run more tests, run ./configure and enable as many extensions as possible.
Here is the shell script I use on an Ubuntu box:
There are also README.TESTING and README.TESTING2 text files in the root
directory if you want to learn more about the testing mechanism.