mirror of
https://github.com/php/php-src.git
synced 2025-08-15 05:28:50 +02:00
Add a brief section on options to the test runner, and -j
This commit is contained in:
parent
0c82801384
commit
a9ab62d54d
1 changed files with 25 additions and 0 deletions
|
@ -58,6 +58,31 @@ Tester can easily execute tests selectively with as follows:
|
|||
./sapi/cli/php run-tests.php ext/mbstring/*
|
||||
./sapi/cli/php run-tests.php ext/mbstring/020.phpt
|
||||
|
||||
*********************
|
||||
Test Runner Options
|
||||
*********************
|
||||
|
||||
The ``run-tests.php`` test runner has many options. You can see these options by using the ``-h``
|
||||
option with ``run-tests.php``.
|
||||
|
||||
You can set options by specifying them on the command line when you run ``php run-tests.php`` or if
|
||||
you use ``make test`` through the ``TEST_PHP_ARGS`` environment variable:
|
||||
|
||||
.. code:: shell
|
||||
|
||||
php run-tests.php -j24
|
||||
# or
|
||||
TEST_PHP_ARGS="-j24" make test
|
||||
|
||||
Running Tests in Parallel
|
||||
=========================
|
||||
|
||||
The test runner can run tests in parallel, by using the ``-j`` option:
|
||||
|
||||
.. code:: shell
|
||||
|
||||
php run-tests.php -j24 ext/date/*.phpt
|
||||
|
||||
**************
|
||||
Test results
|
||||
**************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue