====== run-tests.php command line options and environment variables options ====== ===== Short Options ===== ^ Cmd line ^ ENV var ^ Function ^ Required in the re-write? ^ implemented ^ | h | | help | yes | yes | | p | PHP_TEST_EXECUTABLE | Specifies PHP executable to be tested | yes | yes | | v | | Writes the PHP command that's passed to proc_open(), and ... | yes | yes, see verbose-mode | | q | NO_INTERACTION | Suppress option to send results to QA? Only ever relevant if run using 'make test' I think | yes | | | x | SKIP_SLOW_TESTS | Skip slow tests | NO | | | w | | Write a list of all failed tests to . | NO | | | a | | Same as -w but append rather then truncating | NO | | | c | | Look for php.ini in directory or use as ini | Yes | | | n | | Pass -n option to the php binary (Do not use a php.ini) | Yes | | | d foo=bar | | Pass -d foo=bar option to the php binary | Yes | | | m | | Test for memory leaks with Valgrind | Yes (See additional requirement from Nuno)| yes | | s | | Write output to | yes | yes | | l | | Read lists of tests to be executed from , write failed tests back to same file | yes | | | r | | Read lists of tests to be executed from | yes | | ===== Long options ===== ^ Cmd line ^ ENV var ^ Function ^ Required in the re-write? ^ implemented ^ | html | | Write HTML summary output to file | NO (replaced by output-type)| | |temp-source temp-target [temp-urlbase ] | | Write temporary files to by replacing from the filenames to generate with ... | NO | | | keep-(all,php...) | | Do not delete 'all' files, 'php' test file, 'skip' or 'clean' file. |Yes (all, Nuno for gcov etc) | | | set-timeout n | | Set timeout for individual tests. n is seconds | NO | | | show-(all, php...) | | Show 'all' files, 'php' test file ... etc | NO | | | no-clean | | Don't execute the CLEAN section | yes | | | verbose | | Writes the PHP command that's passed to proc_open(), and... | yes | yes, see verbose-mode | ===== New options ===== ^ Cmd line ^ ENV var ^ Function ^ implemented ^ | o | | Specifies the output-type | yes | | z | | Run in parallel, forks processes. | yes | | v | | verbose-mode level 1 | yes | | vv | | verbose-mode level 2 | yes | | vvv | | verbose-mode level 3 | yes | ===== Environment variables ===== ^ var name ^ Cmd line ^ Meaning ^ Required in the re-write^ | TEST_PHP_EXECUTABLE | p | PHP executable to test | Yes | | TEST_PHP_CGI_EXECUTABLE | | PHP CGI executable to test | Yes | |TEST_PHP_LOG_FORMAT | | Sets log format, defaults to LEOD (log, out, exp diff files are created) | | | TEST_PHP_DETAILED | v/verbose | Writes the PHP command that's passed to proc_open(), and ... | | | TEST_PHP_USER | | List of directories to be run | | | NO_INTERACTION | q | Suppress option to send results to QA? Only ever relevant if run using 'make test' I think | | | PHP_AUTOCONF | | ? *ix only | | | TEST_PHP_ERROR_STYLE | | Strange logic, this is only ever used on failure to write log file. I don't think it can ever work | | | NO_PHPTEST_SUMMARY | | Suppress listing of failed tests | | | CC | | | | | TEST_PHP_ARGS | | Command line arguments to run-tests.php |Yes (Nuno - for make test) |