On Wed, Jan 17, 2018 at 4:50 PM, Nikita Popov <nikita....@gmail.com> wrote:
> On Wed, Jan 17, 2018 at 5:40 PM, Sam Ding <samd...@ca.ibm.com> wrote: > > > > > Hi PHP developers, > > > > I am new and try to porting php v7.2.1 on IBM s390x, after building and > > run unit test "make test", there are > > some failed cases. Is there any way I can run a single case and get the > > result? > > Further how to debug a php unit case code? > > > > You can use one of > > make test TESTS=dir > sapi/cli/php run-tests.php -P dir > > to run tests in a certain directory, or a specific test file. > > The first step for debugging would be to look at the .out or .diff file for > the failing .phpt. There will also be a .php file, which can be used to run > the test file directly. > > Nikita > To add to what Nikita said, there will also be a .sh file next to the failing test that you can use to repeat that test only. Regards, Pedro