summaryrefslogtreecommitdiff
path: root/run-tests.php
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge branch 'PHP-7.4'Derick Rethans2020-05-181-1/+1
|\ \ \ | |/ /
| * | Put Xdebug 3 into 'off' mode for run-tests.phpDerick Rethans2020-05-181-1/+1
| | |
* | | run-tests: extract usage messageGerard Roche2020-05-131-86/+92
| | | | | | | | | | | | | | | | | | | | | Put the usage message near the top of the script, into a separate function. Closes GH-5558.
* | | run-tests: cs fixes (cleanup)Gerard Roche2020-05-131-112/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I used php-cs-fixer to do the cs fixes. The configuration I used is posted below. The reason I disabled some of the rules is because they create too much noise and would make it difficult to review. But please feel free to close this PR and run the php-cs-fixer yourself. <?php $config = PhpCsFixer\Config::create(); $config->setRiskyAllowed(false); $config->setRules([ '@PSR2' => true, '@Symfony' => true, 'array_syntax' => false, 'binary_operator_spaces' => false, 'blank_line_before_statement' => false, 'concat_space' => false, 'increment_style' => false, 'phpdoc_align' => false, 'single_quote' => false, 'trailing_comma_in_multiline_array' => false, 'unary_operator_spaces' => false, 'yoda_style' => false, ]); $finder = PhpCsFixer\Finder::create(); $finder->in(getcwd()); $finder->exclude('Zend'); $finder->exclude('build'); $finder->exclude('ext'); $finder->exclude('pear'); $finder->exclude('sapi'); $finder->exclude('scripts'); $finder->exclude('win32'); $config->setFinder($finder); return $config; Closes GH-5557.
* | | run-tests: remove use of FILE_BINARY constantGerard Roche2020-05-121-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The FILE_BINARY (and FILE_TEXT) constants are not really valid or useful constants. It looks like they were added in 5.2.7 and have "no effect, and are only available for forward compatibility." See: https://www.php.net/manual/en/filesystem.constants.php The default value of the file_put_contents() flags parameter is 0 and FILE_BINARY is set to 0, so removing it doesn't change functionality. P.S. Maybe those constants should be deprecated or removed in 8.0. Closes GH-5556.
* | | Revert "Show eventual output of clean sections"Christoph M. Becker2020-04-301-4/+1
| | | | | | | | | | | | | | | This reverts commit 5eb4ab07f27c82336d337afa01d02a7bf574adaf. The temporary hack has served its purpose.
* | | Merge branch 'PHP-7.4'Christoph M. Becker2020-04-291-4/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Pass worker ID to clean scripts
| * | Pass worker ID to clean scriptsChristoph M. Becker2020-04-291-4/+1
| | | | | | | | | | | | | | | | | | | | | On Windows, reusing/sharing of OPcache instances with different configuration is not necessarily supported, so we have to make that it does not happen for the clean scripts, by using `$orig_ini_settings` instead of `$clean_params`.
* | | Show eventual output of clean sectionsChristoph M. Becker2020-04-281-1/+4
| | | | | | | | | | | | | | | | | | This is a hack to investigate why mysqli_insert_packet_overflow.phpt intermittently fails on AppVeyor, and will be reverted in due time. See <https://github.com/php/php-src/pull/5447#issuecomment-620508790>.
* | | Fixed run-tests.php for PHP 7.2Flávio Heleno2020-04-271-2/+3
| | | | | | | | | | | | | | | | | | Flexible heredoc syntax is only available since PHP 7.3. Closes GH-5444.
* | | Enhance test failure SH script to allow gdb, valgrind, rr as alternative modes.Benjamin Eberlei2020-04-181-4/+18
| | |
* | | Force short_open_tag=0 in run-tests.phpNikita Popov2020-04-151-0/+1
| | | | | | | | | | | | Make sure we don't accidentially add tests depending on short tags.
* | | Use serialize_precision for var_dump()Nikita Popov2020-02-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | var_dump() is debugging functionality, so it should print floating-point numbers accurately. We do this by switching to serialize_precision, which (by default) will print with as much precision as necessary to preserve the exact value of the float. This also affects debug_zval_dump(). Closes GH-5172.
* | | Merge branch 'PHP-7.4'Christoph M. Becker2020-02-171-1/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Create a new console for each test worker on Windows
| * | Create a new console for each test worker on WindowsChristoph M. Becker2020-02-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The primary motivation to have each test worker running its own console is to allow the windows_mb_path tests to run in parallel. A nice side effect is that this also prevents changing the code page of the tester's console window (which can even cause its font to be changed). To be able to do so, we introduce the `create_new_console` option for `proc_open()`, which might occasionally be useful for other purposes than testing.
* | | Merge branch 'PHP-7.4'Nikita Popov2020-02-031-3105/+3105
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Apply tidy formatting
| * | Apply tidy formattingNikita Popov2020-02-031-3086/+3086
| | | | | | | | | | | | Mostly reindent PHP scripts to spaces.
* | | Merge branch 'PHP-7.4'Nikita Popov2020-02-031-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Add WHITESPACE_SENSITIVE run-tests section
| * | Add WHITESPACE_SENSITIVE run-tests sectionNikita Popov2020-02-031-1/+1
| | | | | | | | | | | | | | | This is used to indicate that the test should not be changed by automated formatting changes.
* | | Merge branch 'PHP-7.4'Nikita Popov2020-01-241-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Don't use CRLF when generating diffs
| * | Don't use CRLF when generating diffsNikita Popov2020-01-241-1/+1
| | |
* | | Use smaller batch size in run-tests.php when appropriateTyson Andre2020-01-211-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - When valgrind is used, communication overhead is relatively small, so just use a batch size of 1. - If this is running a small enough number of tests, reduce the batch size to give batches to more workers. (Previously, if there were 90 tests and -j8, only 3 of 8 workers would get a batch of size 32 or less. After this change, the batch size is 12 or less) Closes GH-5098
* | | Don't start unnecessary processes with run-tests.php -jTyson Andre2020-01-211-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | If there's only 2 files to test, then only start 2 workers instead of N. If there's only 1 file, then avoid parallelism entirely. A separate option such as `--force-parallel` could be added if this turns out to be something developers would want to do when debugging test failures.
* | | Merge branch 'PHP-7.4'Nikita Popov2020-01-211-4/+4
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Avoid some @count() suppressions in run-tests.php
| * | Avoid some @count() suppressions in run-tests.phpNikita Popov2020-01-211-4/+4
| | |
* | | Use IS_WINDOWSChristoph M. Becker2020-01-091-5/+1
| | |
* | | Replace fakemail with minimal PHP scriptChristoph M. Becker2020-01-091-1/+1
| | |
* | | Unify mail related tests for *nix and WindowsChristoph M. Becker2020-01-091-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently mail related tests are split for *nix and Windows (if there are even Windows versions). The basic difference is that the *nix variants set the INI directive sendmail_path to just write the email to disk, while the Windows tests use ext/imap. The latter tests are way more verbose, and such duplicated tests are generally a pain point. Furthermore, the Windows tests are much slower, and could not be run without ext/imap being available. We therefore introduce a small fakemail application, which basically works like `tee <path> >/dev/null`, and which will be shipped with the Windows tests packs. fakemail.exe would also need to be added to the PHP binary SDK, so these tests could be run during developments. To cater to the remaining differences, we also introduce support for `{MAIL:<path>}` placeholders in the INI sections to run-tests.php. How to use this can be seen in mail_basic.phpt, which is currently the only modified test case, because these tests are yet supposed to fail on Windows, due to the missing fakemail.exe in the PHP SDK.
* | | Merge branch 'PHP-7.4'Nikita Popov2019-12-101-0/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Set zend.exception_ignore_args=0 in run-tests.php
| * | Set zend.exception_ignore_args=0 in run-tests.phpNikita Popov2019-12-101-0/+1
| | | | | | | | | | | | Any existing tests are going to be written under this assumption...
* | | Merge branch 'PHP-7.4'Fabien Villepinte2019-11-081-273/+270
|\ \ \ | |/ /
| * | Make test runner runnable without argumentsFabien Villepinte2019-11-081-273/+270
| | | | | | | | | | | | | | | | | | The default PHP executable was not set when no args were provided. Closes GH-4894.
* | | Define IS_WINDOWS in the test runnerFabien Villepinte2019-10-281-9/+11
| | | | | | | | | | | | | | | | | | Avoid code duplication Closes GH-4866.
* | | Set display_startup_errors=0 when running skipifNikita Popov2019-10-101-1/+1
| | | | | | | | | | | | | | | | | | | | | Now that we're displaying errors in skipif, suppress this particular category. Otherwise we get warnings in the SKIPIF of tests with EXTENSION where the extension does not exist, and there's no way to suppress them.
* | | Merge branch 'PHP-7.4'Christoph M. Becker2019-10-071-0/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Bail out if JUNIT is not enabled
| * | Bail out if JUNIT is not enabledChristoph M. Becker2019-10-071-0/+2
| | | | | | | | | | | | | | | | | | Otherwise we would try to access an array element of `false`, which issues a notice as of PHP 7.4.0. This would happen, for instance, for bug63447_001.phpt if CGI is not available.
* | | Merge branch 'PHP-7.4'Christoph M. Becker2019-10-071-4/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Delete temporary .post files of run-tests.php
| * | Delete temporary .post files of run-tests.phpChristoph M. Becker2019-10-071-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 5649267[1] changed run-tests.php to only delete .post files for passing tests. However, that code wouldn't be exercised at all, since `run_test()` already returned, so we move the deletion upwards. [1] <http://git.php.net/?p=php-src.git;a=commit;h=5649267b257c78e46a934434c0bff894e0b5b694>
* | | Require a space ofter run-tests "warn"Nikita Popov2019-10-011-1/+1
| | | | | | | | | | | | We don't want to treat a PHP "Warning: " as a run-tests warn.
* | | Mark test as borked when skipif produces invalid outputFabien Villepinte2019-09-301-20/+25
| | | | | | | | | | | | | | | | | | SKIPIF section should either output nothing, or start with a supported keyword like "skip". Mark all tests that don't do so as BORKED.
* | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
|/ / | | | | | | Closes GH-4732.
* | Fix reporting of redirect test failures in junitNikita Popov2019-09-071-2/+4
| | | | | | | | | | These were being reported under the wrong name ... which means that they don't show up as failures on azure :(
* | Fix handling of succeeding XFAIL testsChristoph M. Becker2019-08-051-1/+1
| | | | | | | | | | | | | | | | Due to a typo in commit e1151c9[1], succeeding XFAIL test without an EXPECTF or EXPECTREGEX section have been reported reported as passed instead of warned. [1] <http://git.php.net/?p=php-src.git;a=commit;h=e1151c9549cf5a7235c1609019f79bbb1bbcdbea>
* | Merge branch 'PHP-7.3' into PHP-7.4Levi Morrison2019-07-251-1/+4
|\ \ | |/ | | | | | | * PHP-7.3: Remove .post files only for passing tests
| * Merge branch 'PHP-7.2' into PHP-7.3Levi Morrison2019-07-251-2/+4
| |\ | | | | | | | | | | | | * PHP-7.2: Remove .post files only for passing tests
| | * Remove .post files only for passing testsLevi Morrison2019-07-251-2/+4
| | | | | | | | | | | | This allows the sh script for failing tests with --POST-- to work
| * | Add CONFLICTS to recognized sectionsNikita Popov2019-07-101-1/+1
| | | | | | | | | | | | | | | It does nothing on 7.3, but this makes it easier to write tests in 3rd party extensions.
* | | Cleanup of remaining E_STRICT in testsGeorge Peter Banyard2019-07-231-2/+2
| | |
* | | Fix failed tests for pharPeter Kokot2019-07-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - when $status is boolean, E_NOTICE appears and tests fail - opcache is never enabled on these tests anyway. - Add opcache.revalidate_freq=0 to testing script Instead of checking this in the tests files it can be used directly in the main testing script. Also this fixes failed tests. - Use opcache_invalidate() instead of sleep() delay in some tests. Some delays are still used since the opcache_invalidate seems to be buggy and not working as expected. Closes GH-4392
* | | Deprecate alternative array access syntaxrjhdby2019-07-191-4/+4
| | | | | | | | | | | | RFC: https://wiki.php.net/rfc/deprecate_curly_braces_array_access