Commit Graph

768 Commits

Author SHA1 Message Date
Gabriel Caruso
0e0019f694
Remove superfluous checks of always available functions 2018-08-03 00:13:01 -03:00
Gabriel Caruso
c7d1c14b5c
Small tweaks to php scripts 2018-07-14 19:33:35 -03:00
Dusta
1deda9326e
Update Coding style 2018-06-27 18:14:03 +02:00
Dusta
da82719f20
Update http to https 2018-06-25 08:31:32 +02:00
Nat Zimmermann
4ac531afb3 Revert braces inside condition 2018-06-13 23:37:14 +01:00
Nat Zimmermann
3c3ef6dd26 Use .= where possible 2018-06-09 17:02:35 +01:00
Nat Zimmermann
1b767ac26b Remove unncecessary parantheses 2018-06-09 17:01:31 +01:00
Nat Zimmermann
e5043d06c9 Remove unused variable old_php 2018-06-09 16:59:25 +01:00
Nat Zimmermann
a91d5a8194 Fix property name 2018-06-09 16:58:41 +01:00
Anatol Belski
35302c22ac Use hrtime() for timing tests 2018-05-31 15:32:47 +02:00
Peter Kokot
af01ef8741 Remove unused binary_pipes option
Option binary_pipes was added in PHP 6 which was then refactored
and this option was removed.
2018-05-28 22:14:37 +02:00
Gabriel Caruso
543cab8a00 Small improvements to run-tests
* substr instead of preg_match
* cast instead of settype
* remove $borked and check if $bork_info isn't null to report borked
tests
* remove some error control operators
2018-03-23 21:15:18 +01:00
Stanislav Malyshev
371076d6f0 Merge branch 'PHP-7.2'
* PHP-7.2:
  Set tests exit status by defaul - also in other instance.
2018-03-19 01:20:04 -07:00
Stanislav Malyshev
13a33f7c7b Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
  Set tests exit status by defaul - also in other instance.
2018-03-19 01:17:36 -07:00
Stanislav Malyshev
f46da1da7d Set tests exit status by defaul - also in other instance. 2018-03-19 01:17:14 -07:00
Stanislav Malyshev
6aec16c0d9 Merge branch 'PHP-7.2'
* PHP-7.2:
  Set tests exit status by default.
2018-03-18 15:07:53 -07:00
Stanislav Malyshev
077b7705af Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
  Set tests exit status by default.
2018-03-18 15:06:08 -07:00
Stanislav Malyshev
f19c94b555 Set tests exit status by default.
Use REPORT_EXIT_STATUS=0 or REPORT_EXIT_STATUS=no to prevent it.

Based on discussion in https://www.mail-archive.com/internals@lists.php.net/msg94141.html
2018-03-18 15:04:50 -07:00
Joe Watkins
0fe7636084
correct condition for leaks in run-tests.php 2018-03-02 13:22:12 +01:00
Joe Watkins
03f15f705a
add ability to show valgrind output with --show-mem 2018-03-02 13:14:35 +01:00
Gabriel Caruso
b895690dfa
remove support for string|unicode in tests 2018-02-22 08:11:30 +01:00
Michael Wallner
ba8cd2f4de
[ci skip] run-tests.php: add missing put section 2018-02-20 14:55:52 +01:00
Anatol Belski
377f346354 Fix conjugation 2018-02-20 07:25:44 +01:00
Gabriel Caruso
d4999ad8e9 Report unknown sections in run-tests.php 2018-02-19 21:40:17 +01:00
Gabriel Caruso
ea4401c1dc
Better error message when fail to find test file 2018-02-15 08:51:12 +01:00
Xinchen Hui
a6519d0514 year++ 2018-01-02 12:57:58 +08:00
Xinchen Hui
7a7ec01a49 year++ 2018-01-02 12:55:14 +08:00
Xinchen Hui
ccd4716ec7 year++ 2018-01-02 12:53:31 +08:00
Anatol Belski
65c209d0c2 Fix junit XML format
The junit XML format is purely documented, some existings spec like
http://llg.cubic.org/docs/junit/ also provide an XSD. The testsuite
tag included into itself doesn't seems to be correct, instead only a
flat list is included into "testsuites" tag.
2017-12-02 10:40:43 +01:00
Anatol Belski
7a96ab7bb8 Rework junit output
- testcase classname attribute is closest to put the filename
- if tests run from php checkout, don't include the full path
- remove filename from the testcase description, as it's included into
classname
2017-12-02 02:18:43 +01:00
Anatol Belski
a5bc5aed71 Patch core for PCRE2 support
RFC https://wiki.php.net/rfc/pcre2-migration
2017-11-13 19:37:38 +01:00
Christoph M. Becker
dc4427d0ca Implemented request #62055 (Make run-tests.php support --CGI-- sections)
Not regarding the CGI section might even been seen as a bug, and since
server-tests.php appears to broken, anway[1][2], we implement it for
run-tests.php in the way as described[3] for server-tests.php, i.e.
respective tests are skipped if no CGI executable is found.

[1] <https://github.com/php/php-src/pull/222#commitcomment-2064387>
[2] <https://github.com/php/php-src/pull/1811#issuecomment-256677997>
[3] <https://qa.php.net/phpt_details.php#cgi_section>
2017-10-30 21:04:59 +01:00
Joe Watkins
f45a7e26de
Merge branch 'PHP-7.2'
* PHP-7.2:
  make sure run-tests reports exit status upon prerequisite error
2017-10-29 04:38:20 +00:00
Joe Watkins
cb04599d27
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
  make sure run-tests reports exit status upon prerequisite error
2017-10-29 04:38:08 +00:00
Joe Watkins
6c90612d13
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
  make sure run-tests reports exit status upon prerequisite error
2017-10-29 04:37:55 +00:00
Joe Watkins
59d413ceb8
make sure run-tests reports exit status upon prerequisite error 2017-10-29 04:37:21 +00:00
Sara Golemon
5a2a92f128
Consolidate Valgrind logic into a single var and class 2017-08-23 14:44:36 -04:00
Sara Golemon
121a761174
constify some vars that are never changed once set 2017-08-23 14:08:53 -04:00
Anatol Belski
97ed208cfd Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
  Fix issues with phpt and EXTENSION on windows (BUG 75042)
2017-08-19 02:01:03 +02:00
John Boehr
71b12940d0 Fix issues with phpt and EXTENSION on windows (BUG 75042)
* Commands are not properly escaped for windows
* Specifying "-n" to check loaded modules causes "Module already loaded"
warning
* Extensions to be loaded need the "php_" prefix on Windows

Bug: https://bugs.php.net/bug.php?id=75042

Add back -n flag to fetch loaded extensions in run-tests.php

Add test for phpt EXTENSIONS directive

Add a second test for bug 75042

Add test to test loading of nonexistent shared module

with the EXTENSIONS phpt block

Pass ini settings when checking loaded extensions

Fix skipifs
2017-08-19 01:59:48 +02:00
John Boehr
59558ffd96 Fix issues with phpt and EXTENSION on windows (BUG 75042)
* Commands are not properly escaped for windows
* Specifying "-n" to check loaded modules causes "Module already loaded"
warning
* Extensions to be loaded need the "php_" prefix on Windows

Bug: https://bugs.php.net/bug.php?id=75042

Add back -n flag to fetch loaded extensions in run-tests.php

Add test for phpt EXTENSIONS directive

Add a second test for bug 75042

Add test to test loading of nonexistent shared module

with the EXTENSIONS phpt block

Pass ini settings when checking loaded extensions
2017-08-18 17:34:48 +02:00
Anatol Belski
8a287c0ea0 Upgrade bundled PCRE to 8.41
HEADSUP! With PCRE 8.39 the JIT related code was changed in the way,
that additional valgrind options became almost unavoidable. Valgrind
had it already sometimes hard with JIT, now there are seem to be more
cases requiring special valgrind options.

For this reason, the new configure option --with-pcre-valgrind was
introduced. The option is development/debugging only and turns on the
Valgrind related pieces in PCRE, so then false positives are avoided
to the big part. In addition, run-tests.php was added a new valgrind
option, when the leak check is enabled and the test filepath contains
pcre.

Thus, to debug the code related to PCRE with JIT enabled, two things
would likely make sense

  - configure --with-pcre-valgrind
  - valgrind option --smc-check=all if run-tests.php is not used

The checks so far reveal no new issues.
2017-07-11 17:01:59 +02:00
Dmitry Stogov
c7a75b7112 Fixed few test failures if php.ini contains zend.assertions=-1 2017-06-21 18:50:08 +03:00
Anatol Belski
8ec91086ee Revert "fixing run-tests.php for variables_order="GPCS""
This reverts commit c1d5718697.

The commit seems to be inappropriate as it contains parts from master,
which have nothing to do with the variables order issue. Obviously patch
applied to wrong branch or alike.
2017-05-15 20:34:11 +02:00
Anatol Belski
041652bd41 restore rev f9215b6519 2017-05-15 17:54:08 +02:00
Anatol Belski
b273fda825 restore rev 431e22fb4d 2017-05-15 17:43:48 +02:00
Matt Ficken
c1d5718697 fixing run-tests.php for variables_order="GPCS" 2017-05-15 02:21:55 -07:00
Matt Ficken
ad67218954 fixing run-tests.php for variables_order="GPCS" 2017-05-15 02:19:05 -07:00
Sara Golemon
431e22fb4d
Add support for run-tests.php to output all test results
./run-tests.php -W outfile.txt

PASS foo/bar.phpt
FAIL baz/qux.phpt
2017-05-08 05:49:56 +01:00
Nikita Popov
f9215b6519 Support showing slow tests in run-tests.php 2017-05-01 12:25:03 +02:00
Nikita Popov
852c4a872f Merge branch 'PHP-7.1' 2017-02-12 00:20:15 +01:00
Nikita Popov
479d7c3f4d Merge branch 'PHP-7.0' into PHP-7.1 2017-02-12 00:20:06 +01:00
Nikita Popov
981c58705a run-tests: Exit 1 on BORKED tests 2017-02-12 00:19:36 +01:00
Nikita Popov
06a0340162 Deprecate each() 2017-02-03 21:02:52 +01:00
Nikita Popov
c61daf415d Deprecate track_errors / $php_errormsg 2017-02-03 21:02:52 +01:00
Joe Watkins
3abb5a35f6
Merge branch 'PHP-7.1'
* PHP-7.1:
  removed additional ";" from run-tests.php
2017-01-31 05:36:28 +00:00
Joe Watkins
390134e6c5
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
  removed additional ";" from run-tests.php
2017-01-31 05:36:16 +00:00
Rodrigo Prado
543141ae3b
removed additional ";" from run-tests.php 2017-01-31 05:35:58 +00:00
Anatol Belski
e9f978a272 Merge branch 'PHP-7.1'
* PHP-7.1:
  fix test
  Fix test runs with Opcache enabled PHP on top
2017-01-13 14:46:44 +01:00
Anatol Belski
527bf4d8e6 Fix test runs with Opcache enabled PHP on top
Writing to the same file, while it's cached, is an issue.
2017-01-13 14:37:37 +01:00
Nikita Popov
ce90742ad5 Merge branch 'PHP-7.1' 2017-01-10 23:32:46 +01:00
Nikita Popov
5cee9dfe9a Add support for "xfail" to phpt SKIPIF sections
If SKIPIF output starts with "xfail" instead of "skip", the test
will be marked as XFAIL with the following message. Example:

    --TEST--
    Test xfailif feature
    --SKIPIF--
    <?php
    if (some_cond()) die('xfail Expected to fail!');
    ?>
    --FILE--
    ...
2017-01-10 23:32:03 +01:00
Sammy Kaye Powers
dac6c639bb Update copyright headers to 2017 2017-01-04 11:23:42 -06:00
Sammy Kaye Powers
478f119ab9 Update copyright headers to 2017 2017-01-04 11:14:55 -06:00
Sammy Kaye Powers
9e29f841ce Update copyright headers to 2017 2017-01-02 09:30:12 -06:00
Bob Weinand
c406d1e9b5 Merge branch 'PHP-7.1' 2016-11-30 11:45:36 +01:00
Bob Weinand
e37412e19c Merge branch 'PHP-7.0' into PHP-7.1 2016-11-30 11:45:18 +01:00
Bob Weinand
344ef050aa Fix run-tests.php to always include TEST_PHPDBG_EXECUTABLE if phpdbg available 2016-11-30 11:44:10 +01:00
Matteo Beccati
02a1469810 Merge branch 'PHP-7.1'
* PHP-7.1:
  Added missing array key to $JUNIT
2016-11-27 10:08:23 +01:00
Matteo Beccati
8101024ad4 Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
  Added missing array key to $JUNIT
2016-11-27 10:08:14 +01:00
Matteo Beccati
f9b158df07 Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
  Added missing array key to $JUNIT
2016-11-27 10:08:04 +01:00
Matteo Beccati
28cf42568b Added missing array key to $JUNIT 2016-11-27 10:07:05 +01:00
Craig Duncan
b476d21962 Fix run-tests.php counting an uncountable 2016-11-17 09:33:04 +00:00
Michele Locati
33301d5bae Add VT100 support for Windows
Fix function names prefix

Use Unicode version of GetFinalPathNameByHandle

Use EG(windows_version_info) instead of RtlGetVersion

Use the specified handle_id instead of STD_OUTPUT_HANDLE

Switch from stream name to stream resource

Allow running tests capturing only stdout and/or stderr

Add tests for stream_vt100_support function

Export Win32 console functions

Fix x64 build

Use zend_long instead of long long, use GetConsole instead of GetFinalPathNameByHandleW to check if a handle is a valid console stream

Always use zend_long on any platform

Use _get_osfhandle to determine the standard handle

Accept stream names

Raise warnings in case of invalid stream parameter

Return true if disabling VT100 support on a not-console/redirected stream or on old Windows versions

Remove php_win32_console_os_supports_vt100

Differentiate stdin vs stdout/stderr

Simplify setting flag

Allow avoid piping STDIN

Let stream_vt100_support accept only resources

Fix run-tests

Revert console flags in case of failure

Simplify logic of stream_vt100_support when setting the flag

Return true if succeeded, false otherwise

Drop support for STDIN

More comprehensive tests for stream_vt100_support

Remove old tests

Fix name of included file and use absolute paths

Enable ENABLE_VIRTUAL_TERMINAL_PROCESSING on Windows by default

Remove tests for stream_vt100_support

Split stream_vt100_support into stream_isatty+sapi_windows_vt100_support

Add tests for stream_isatty

Add tests for sapi_windows_vt100_support

Return null from stream_isatty is neither Windows nor Posix

Fallback to S_ISCHR if neither Windows nor Posix

Avoid defining argc since it's only used once

Better comment about php_win32_console_fileno_is_console

Use events instead of cNumberOfEvents

Do not restore previous console mode

We need to restore previous console mode on failing SetConsole calls only for STDIN

Don't configure STDOUT/STDERR on Windows with PHP_CLI_WIN32_NO_CONSOLE
2016-10-28 19:23:00 +02:00
Bob Weinand
11e7447e04 Merge branch 'PHP-7.0' into PHP-7.1
(cherry picked from commit 37ae5f3931)
2016-10-14 01:48:03 +02:00
Bob Weinand
37ae5f3931 Merge branch 'PHP-7.0' into PHP-7.1 2016-10-12 20:19:10 +02:00
Bob Weinand
5aae01104f Add stdin command and -s command line parameter to phpdbg
This allows reading the initial script file from stdin instead of being forced to put the script into a file in order to run it with phpdbg.
Especially important for programmatic execution of phpdbg.

Also adding tests/include_once.phpt and tests/set_exception_handler.phpt as I seem to have forgotten to git add them sometime long ago...
2016-10-12 20:15:49 +02:00
Stanislav Malyshev
9470cdd4c3 Merge branch 'pull-request/1864'
* pull-request/1864:
  Tiny tweak for `$header` initialization, it should always be an array
  Minor tweaks
2016-09-05 00:51:01 -07:00
Dmitry Stogov
0cc8ff2b41 Run ext/opcache/tests/*.phpt by default 2016-08-23 11:51:08 +03:00
Bob Weinand
ef6d0c8b6d Fix phpdbg ZTS watchpoint+shutdown sequences & opcache+watchpoints 2016-07-12 20:50:51 +02:00
Nazar Mokrynskyi
ddf1c0891b Tiny tweak for $header initialization, it should always be an array 2016-06-22 22:01:34 +03:00
Derick Rethans
1c49a9fa71 Merge branch 'PHP-7.0' 2016-05-10 15:40:09 -04:00
Derick Rethans
c35bd4861d Allow for special case for the opcache zend extension 2016-05-10 15:40:03 -04:00
Eriko Torralba
e26dabd8ee Update run-tests.php
code style; lack of whitespace
2016-04-21 17:38:36 +08:00
Nazar Mokrynskyi
d69fd5d41a Minor tweaks
Few unused variables removed.
One ambiguous situation resolved.
`join(...)` > `implode(...)`.
One case of 2 `isset()` statements combined together.
2016-04-15 10:14:47 +03:00
Julien Pauli
736b91c650 Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
  Happy new year (Update copyright to 2016)

Conflicts:
	ext/json/php_json_encoder.h
	sapi/continuity/capi.c
2016-01-04 18:13:38 +01:00
Lior Kaplan
53fb2f1e5c Happy new year (Update copyright to 2016) 2016-01-03 01:44:37 +02:00
Lior Kaplan
71c1980025 Happy new year (Update copyright to 2016) 2016-01-01 20:06:12 +02:00
Anatol Belski
1bd0847f16 Merge branch 'PHP-7.0'
* PHP-7.0:
  Fix bug #70781 (Extension tests fail on dynamic ext dependency)
2015-12-09 11:09:55 +01:00
Francois Laupretre
25abf2f028 Fix bug #70781 (Extension tests fail on dynamic ext dependency) 2015-12-09 11:05:34 +01:00
Bob Weinand
9cfed119ff Merge branch 'PHP-7.0' 2015-11-10 09:29:35 +01:00
Bob Weinand
ccf8b54b89 Use --vex-iropt-precise-memory-exns=yes for valgrind < 3.8.0 2015-11-10 09:27:49 +01:00
Sobak
31f2dbc327 Drop support for EOL'd PHP versions from run-tests 2015-10-12 07:00:30 +02:00
Bob Weinand
fe67696867 Generally run all tests in sapi folder by default
Turned out that sapi/phpdbg actually wasn't explicitly included as sapi folders were individually selected
2015-10-10 17:24:14 +02:00
Bob Weinand
af0d6256d5 Fix [valid] valgrind warnings, add first watchpoints test 2015-07-15 14:22:51 +00:00
Bob Weinand
b20953118b Fix last invalid read
Also revert debugging run-tests.php changes...
2015-08-03 20:49:41 +02:00
Bob Weinand
b5e16cebda Fix a few valgrind errors in phpdbg 2015-08-03 20:27:46 +02:00
Bob Weinand
378a05f0de Move phpdbg tests to .phpt mechanism
Also add a few more in-depth tests related to $argv, breakpoints and uncaught exceptions
2015-07-20 18:00:43 +02:00
Bob Weinand
6ff72467dc XFAILED tests are not "You may have found a problem in PHP" 2015-07-02 20:49:30 +02:00
Xinchen Hui
0e438a2783 Remove debug codes 2015-05-27 17:41:38 +08:00
Xinchen Hui
c17029315f Fixed sapi/tests (maybe needs some run-test.php people's reviewing) 2015-05-27 17:37:34 +08:00
Dmitry Stogov
3abde43231 Added experimental (disabled by default) file based opcode cache. 2015-05-06 23:46:49 +03:00
Michael Wallner
34710ddc59 really only signal reports 2015-01-30 19:52:09 +01:00
Michael Wallner
d88edb6d96 also catch segfaults reported by subshells 2015-01-30 18:00:23 +01:00
Nikita Popov
a60efc5e11 Remove set_magic_quotes_runtime
And the alias magic_quotes_runtime
2015-01-17 18:26:45 +01:00
Ferenc Kovacs
f8e7b3d166 Merge branch 'PHP-5.6'
* PHP-5.6:
  add initial install
  switch to C travis project instead of PHP
  use the generic TRAVIS environment var to check for travis (see http://docs.travis-ci.com/user/ci-environment/)
2014-12-04 11:12:42 +01:00
Ferenc Kovacs
9c5d84ace1 Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
  add initial install
  switch to C travis project instead of PHP
  use the generic TRAVIS environment var to check for travis (see http://docs.travis-ci.com/user/ci-environment/)
2014-12-04 11:12:32 +01:00
Ferenc Kovacs
43c36bdb73 use the generic TRAVIS environment var to check for travis (see http://docs.travis-ci.com/user/ci-environment/) 2014-12-04 00:07:32 +01:00
Ferenc Kovacs
7296f9ddfc Merge branch 'PHP-5.6'
* PHP-5.6:
  make sure that we don't truncate the stack trace and cause false test failures when the test is executed in a directory with long path
2014-12-02 19:19:30 +01:00
Ferenc Kovacs
d81b7c4450 Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
  make sure that we don't truncate the stack trace and cause false test failures when the test is executed in a directory with long path
2014-12-02 19:19:16 +01:00
Ferenc Kovacs
4d743eee5f Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
  make sure that we don't truncate the stack trace and cause false test failures when the test is executed in a directory with long path

Conflicts:
	run-tests.php
2014-12-02 19:18:57 +01:00
Ferenc Kovacs
b28c3eb47e make sure that we don't truncate the stack trace and cause false test failures when the test is executed in a directory with long path 2014-12-02 19:17:58 +01:00
Veres Lajos
4b9535341a typo fixes - https://github.com/vlajos/misspell_fixer 2014-11-19 20:23:00 +00:00
Matteo Beccati
8bd58502ca Don't treat warnings as failures in the junit output
This matches Travis and the actual return code.
2014-10-29 14:34:58 +01:00
Matteo Beccati
abfb30dc67 Don't treat warnings as failures in the junit output
This matches Travis and the actual return code.
2014-10-29 14:34:48 +01:00
Matteo Beccati
a3b4f8320d Don't treat warnings as failures in the junit output
This matches Travis and the actual return code.
2014-10-29 14:33:36 +01:00
Timm Friebe
e83580c1f0 Merge branch 'master' into catchable-fatals/methods-on-non-objects 2014-09-25 19:45:05 +02:00
Johannes Schlüter
d0cb715373 s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
Nikita Popov
3defdb1880 Also skip line-overwriting if SHOW_ONLY_GROUPS is used 2014-09-13 21:02:04 +02:00
Nikita Popov
7014dec761 Don't show TEST line if SHOW_ONLY_GROUPS is used 2014-09-11 16:27:53 +02:00
Timm Friebe
a1554ca634 Merge in changes from master
Now also includes "on [TYPE]" in "Call to a member function" error
2014-07-06 17:07:01 +02:00
Timm Friebe
ab4ded90f2 Add support for PHP's 'extended information for debugger/profiler' mode 2014-07-06 14:46:34 +02:00
Matteo Beccati
5270563167 Escape non-printable characters in the junit XML output
XML doesn't allow most of the characters < 0x20 and binary output
breaks XML parsers. Such characters are not allowed as entities
either, so the generated entities are escaped in order to be printed
as text.
2014-05-27 12:04:52 +02:00
Matteo Beccati
eb2bd85004 Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
  Escape non-printable characters in the junit XML output
2014-05-27 12:04:26 +02:00
Matteo Beccati
abfd977410 Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
  Escape non-printable characters in the junit XML output
2014-05-27 12:04:17 +02:00
Matteo Beccati
92d54f81d6 Escape non-printable characters in the junit XML output
XML doesn't allow most of the characters < 0x20 and binary output
breaks XML parsers. Such characters are not allowed as entities
either, so the generated entities are escaped in order to be printed
as text.
2014-05-27 12:03:38 +02:00
Matteo Beccati
1b08c885ba Fixed broken XML junit output due to escaping of CDATA sections
I've removed CDATA and used htmlspecialchars as the output might not be UTF-8 safe, as pointed out by ircmaxell in 26b37f1792
2014-05-27 11:08:03 +02:00
Matteo Beccati
cc3a1af62a Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
  Fixed broken XML junit output due to escaping of CDATA sections
2014-05-27 11:07:32 +02:00
Matteo Beccati
56bcb22afb Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
  Fixed broken XML junit output due to escaping of CDATA sections
2014-05-27 11:07:19 +02:00
Matteo Beccati
1696166466 Fixed broken XML junit output due to escaping of CDATA sections
I've removed CDATA and used htmlspecialchars as the output might not be UTF-8 safe, as pointed out by ircmaxell in 26b37f1792
2014-05-27 11:04:48 +02:00
Matteo Beccati
370256ad4b Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
  Fix broken Junit output with --disable-cgi
2014-05-25 00:08:41 +02:00
Matteo Beccati
980c63651c Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
  Fix broken Junit output with --disable-cgi
2014-05-25 00:08:32 +02:00
Matteo Beccati
f9357b44f3 Fix broken Junit output with --disable-cgi 2014-05-25 00:07:52 +02:00
Adam Harvey
34900eb289 Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
  Fix run-tests.php with Valgrind >= 3.10.0.
2014-05-22 22:37:57 +00:00
Adam Harvey
e5e6ba093f Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
  Fix run-tests.php with Valgrind >= 3.10.0.

Conflicts:
	run-tests.php
2014-05-22 22:37:47 +00:00
Adam Harvey
5d1bfd6fbf Fix run-tests.php with Valgrind >= 3.10.0.
The version test that we had in run-tests.php assumed that the major and minor
version numbers were always single digits. This removes that assumption and
also uses version_compare() for the comparison instead of naively converting it
to an integer.
2014-05-22 22:37:08 +00:00
Nuno Lopes
f46200bcc0 fix regex to detect valgrind version
New PCRE version got stricter
2014-02-08 07:06:44 -05:00
Nuno Lopes
7b7d2952a6 fix regex to detect valgrind version
New PCRE version got stricter
2014-02-08 07:07:15 -05:00
Nuno Lopes
62404e767a fix regex to detect valgrind version
New PCRE version got stricter
2014-02-08 06:54:27 -05:00
Gernot Vormayr
dff0d51243 Add some basic and apparmor tests to fpm 2014-01-17 12:49:07 +04:00
Antony Dovgal
998f506b6d Merge branch 'fpm-apparmor-fixed' of https://github.com/notti/php-src
* 'fpm-apparmor-fixed' of https://github.com/notti/php-src:
  Add some basic and apparmor tests to fpm
  Add --force-stderr to fpm
  Add apparmor change hat functionality to fpm
2014-01-16 17:36:03 +04:00
Gernot Vormayr
e9883779a0 Add some basic and apparmor tests to fpm 2014-01-07 00:21:24 +01:00
Dmitry Stogov
621f83e35c Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
  Fixed bug #65559 (Opcache: cache not cleared if changes occur while running)
  bring the news

Conflicts:
	NEWS
2013-11-26 11:36:23 +04:00
Dmitry Stogov
a8c7e50f4d Fixed bug #65559 (Opcache: cache not cleared if changes occur while running) 2013-11-26 11:34:41 +04:00
Remi Collet
8c05e861d6 Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
  avoid doing a stream_select on a closed stream
2013-11-19 12:42:44 +01:00
Remi Collet
87cabc04ac Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
  avoid doing a stream_select on a closed stream
2013-11-19 12:42:25 +01:00
Remi Collet
25c08a839a avoid doing a stream_select on a closed stream 2013-11-19 12:41:58 +01:00
Michael Wallner
5f41cb18be Merge branch 'issue-55736' of https://github.com/tistre/php-src
implements FR #55736

* 'issue-55736' of https://github.com/tistre/php-src:
  run-tests.php: Adding support for sections EXPECT_EXTERNAL, EXPECTF_EXTERNAL and EXPECTREGEX_EXTERNAL. (Issue 55736)
2013-10-09 10:06:45 +02:00
Michael Wallner
4b61203b01 Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
  fix bug #62396 'make test' crashes starting with 5.3.14 (missing gzencode())
2013-10-01 17:01:44 +02:00
Michael Wallner
cd1cab3f47 fix bug #62396 'make test' crashes starting with 5.3.14
(missing gzencode())
2013-10-01 17:01:03 +02:00
Tim Strehle
5ffaf95d3f run-tests.php: Adding support for sections EXPECT_EXTERNAL, EXPECTF_EXTERNAL and EXPECTREGEX_EXTERNAL. (Issue 55736) 2013-09-03 14:40:43 +02:00
Stanislav Malyshev
2ee7e122a7 Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
  Add -P option to use the current binary
  Create test to the extension xmlrpc
2013-08-18 14:09:19 -07:00
Stanislav Malyshev
3da2fb335d Add -P option to use the current binary 2013-08-18 14:08:03 -07:00
Stanislav Malyshev
02e4d7a290 Merge branch 'pull-request/341'
* pull-request/341: (23 commits)
  typofixes
2013-06-10 14:30:59 -07:00
Stanislav Malyshev
ac40c0b562 Merge branch 'pull-request/341'
* pull-request/341: (23 commits)
  typofixes
2013-06-10 14:20:18 -07:00
Dmitry Stogov
e9641141aa Made test compatible with O+ 2013-03-16 16:11:00 +04:00
Xinchen Hui
16efc77608 count($test_files) already be checked above : if ($test_cnt)
thus we can use $sum_results instead of the preg_match
2012-11-25 16:18:20 +08:00
Xinchen Hui
11c946e594 XFAIL test should not be considered as failed 2012-11-25 12:04:12 +08:00
Remi Collet
dd093ac12a add --offline option to run-tests command 2012-09-30 19:40:57 -07:00
Stanislav Malyshev
4ba2d546c8 Merge branch 'PHP-5.4'
* PHP-5.4:
  add news for --offline
  add --offline option to run-tests command
  Bug #63147: SKIP_ONLINE_TESTS, for getmxrr
  Bug #63147: introduce SKIP_ONLINE_TESTS, for gethostbyname
  gethostbyname_basic002.phpt is a duplicate to gethostbyname_error004.phpt
2012-09-30 19:41:54 -07:00
Hannes Magnusson
ac227f4ba9 Merge branch 'PHP-5.4'
* PHP-5.4:
  Do not unload shared extensions when checking for leaks
2012-07-17 10:06:02 +01:00
Hannes Magnusson
88f7f3c00f Do not unload shared extensions when checking for leaks 2012-07-17 10:04:56 +01:00
Anthony Ferrara
6abd7365d0 Merge branch 'PHP-5.4'
* PHP-5.4:
  Fix two issues with run-tests.php
2012-07-06 22:39:32 -04:00
Anthony Ferrara
26b37f1792 Fix two issues with run-tests.php
1. E_STRICT error due to passing return of array_intersect() into reset() directly
2. Details in junit output can produce invalid UTF-8 and XML due to unescaped characters
2012-07-06 22:37:50 -04:00
Felipe Pena
eb012cf884 - Fixed bug #62415 (Undefined variable: diff in run-tests.php on line 2093 for successful XFAIL) 2012-06-30 16:42:28 -03:00
Felipe Pena
75d8af715c - Fixed bug #62415 (Undefined variable: diff in run-tests.php on line 2093 for successful XFAIL) 2012-06-30 16:29:30 -03:00
David Soria Parra
814e7bcf6c Merge branch 'PHP-5.4'
By Till Klampaeckel
* PHP-5.4:
  Don't depend on a fixed path for PHP shebang but use /usr/bin/env (cherry picked from commit 89c5d981603ed4a2a54f86c20cec4f263c58ded6)
2012-06-07 09:45:12 +02:00
Till Klampaeckel
c56ff39c05 Don't depend on a fixed path for PHP shebang but use /usr/bin/env
(cherry picked from commit 89c5d981603ed4a2a54f86c20cec4f263c58ded6)
2012-06-07 09:44:49 +02:00
Davey Shafik
5ef46fe43c Fix boolean casting and whitespace (@dsp / #68) 2012-05-28 06:25:03 -04:00
Davey Shafik
3966df7fc8 Add support for Travis CI 2012-05-28 06:22:24 -04:00
Nuno Lopes
72911237b5 sync with HEAD 2012-05-27 20:13:09 -04:00
Nuno Lopes
77b086f3f0 128 MB is enough for everyone (TM)
this is an initial tentative to avoid some testcases go crazy and consume 16 GB of memory. Additional measures will have to be taken if the problem persists.
Please patch individual tests that really require more than 128MB of memory
2012-05-27 20:03:58 -04:00
Nuno Lopes
af2d6a63bf remove remaining traces of unicode.* ini settings 2012-05-27 19:57:34 -04:00
zoe slattery
1af8b3f883 Change impl of GZIP_POST, DEFLATE_POST. See #62021 2012-05-15 11:05:20 +01:00
Shein Alexey
1e88d0033f Refactoring junit logger. Added generation of nested testsuites in junit.xml. 2012-03-28 21:39:24 +01:00
David Soria Parra
f7b10abae9 Replace $Revision$ with $Id$ in keyword expansion enable files 2012-03-20 17:53:47 +01:00
Michael Wallner
a07759a013 add --PUT-- section support based on POST_RAW 2012-03-17 09:35:25 +00:00
Michael Wallner
b39ffa3f34 merge 322758 (detect a php-cgi which is a sibling of php cli) 2012-03-09 19:51:09 +00:00
Rasmus Lerdorf
510bb3131b Simple fix that just quotes the filenames in run-tests to support paths with spaces.
Fixes bug #60734
2012-01-28 02:43:31 +00:00
Derick Rethans
0dcf098efd This changes adds the --EXTENSION-- section to .phpt files as
described in http://marc.info/?t=132248616300007&r=1&w=2.
2011-12-06 05:44:54 +00:00
Felipe Pena
78742a33a7 - Replace possible esc char to <esc> in the XML output 2011-12-01 15:47:58 +00:00
Felipe Pena
43a373437d - Added JUnit output format option
patch by: Ferenc Kovacs (tyrael at php.net)
2011-11-26 20:18:03 +00:00
Felipe Pena
350325d42a - Fixed bug #55788 (test redirects should abide SHOW_ONLY_GROUPS in run-tests.php)
patch by: tyrael at php.net
2011-11-26 17:56:43 +00:00
Felipe Pena
3ee878169b - Clean up 2011-11-26 17:30:03 +00:00
Johannes Schlüter
e58f72b6a3 Improve speed of finding tests (no more CVS, we're on svn now) 2011-09-01 14:52:55 +00:00
Hannes Magnusson
958326c843 Move the XFAILED printout way up the list so we can actually notice the really failing ones 2011-09-01 13:06:12 +00:00
Hannes Magnusson
2da2b54899 Seeing thousands of PASS tests flying by is meaningless.
Add an option to only print certain result groups.
2011-09-01 11:00:51 +00:00
Hannes Magnusson
84fc76e94c Remove annoying extra newline on XFAIL summaries
and sync text to trunk
2011-08-31 10:09:54 +00:00
Nuno Lopes
8f54a74d60 terminate timeouting processes with SIGKILL (9) 2011-08-09 21:53:44 +00:00
Felipe Pena
5f75a28d01 - Fixed bug #55080 (Deprecated call in run--test.php)
patch by: fedora at famillecollet dot com
2011-07-01 23:13:53 +00:00
Christopher Jones
d70a9f988d Add http_proxy env var support to run-tests.php result submission 2011-06-24 23:10:37 +00:00
Felipe Pena
1f991c8e42 - Possible fix for Bug #54108 (valgrind can not be found if located outside of system's default PATH) 2011-02-27 17:55:39 +00:00
Christopher Jones
588ec26d2f Show XFAIL reasons (Daniel Convissor) 2011-02-11 01:37:06 +00:00
Christopher Jones
ff5dffdabb rm trailing whitespace 2011-02-11 01:34:03 +00:00
Derick Rethans
e08473da6c - Don't lower case setting names; some of them actually have upper case
characters.
2011-01-31 23:11:42 +00:00
Jani Taskinen
0e72e5897e - Sync with trunk 2010-11-13 10:18:35 +00:00
Adam Harvey
104bf57ae7 Loosen the valgrind version check slightly in run-tests.php so that it works
with the packaged valgrind in Ubuntu 10.04.
2010-09-30 11:16:45 +00:00
Kalle Sommer Nielsen
cee97080d1 Fixed bug #50836 (run_tests.php alerts syntax errors while testing session) 2010-08-16 20:56:00 +00:00
Sebastian Bergmann
9ba1e81665 sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php 2010-01-03 09:23:27 +00:00
Jani Taskinen
4bba459d8f - Sync (and KEEP it synced!) 2009-12-21 15:44:58 +00:00
Jani Taskinen
03a47e9b03 - Fix problem with SKIPIF failing to skip in some cases (deprecated warnings f.e.) 2009-12-11 07:34:06 +00:00
Greg Beaver
5c4609021f sync run-tests.php with revision 286499 changes making php 6 tests with EXPECTF that can have arbitrary binary data in output work 2009-07-29 10:06:55 +00:00
David Soria Parra
2331863a5c MFH: Reset TZ environment variable. Some tests assume that it's not set. 2009-07-07 23:05:17 +00:00
Arnaud Le Blanc
90d1875421 MFH: set default value of "precision" ini setting,
many tests depend on this
2009-05-20 09:22:50 +00:00
Hannes Magnusson
82c49a50f4 MFH: Print out the WARNed section 2009-05-18 14:08:23 +00:00
Jani Taskinen
c56690dbc3 MFB52: sync 2009-04-25 17:12:40 +00:00
Hannes Magnusson
65640d2c1a MFH: Make it possible to run on 5.2 2009-04-16 13:41:25 +00:00
Zoe Slattery
1df58d629a refixing %r in run-tests.php (thanks iain lewis for the fix) 2009-03-12 20:42:46 +00:00
Zoe Slattery
2c7d95c5a6 Added %r section 2009-03-03 10:53:44 +00:00
Antony Dovgal
24163ce0b2 fix ws 2009-01-05 11:14:43 +00:00
Antony Dovgal
fde1c3d332 MFH: only add "# original source" if a redirect is active 2009-01-05 09:19:09 +00:00
Antony Dovgal
fab5be7f21 MFH: fix PDO and other 'redirected' tests - add that "# original source" line only if the test fails 2009-01-04 15:56:45 +00:00
Zoe Slattery
89743669d2 Fixed bug #46845 Test expected to fail, but pass, don't cause error 2008-12-31 17:35:50 +00:00
Sebastian Bergmann
08659c2dcd MFH: Bump copyright year, 3 of 3. 2008-12-31 11:15:49 +00:00
Lars Strojny
1f4fd81a27 Fixing strict warning when null is passed 2008-12-11 02:37:36 +00:00
Jani Taskinen
b2a2aaff93 MFH 2008-12-09 15:21:15 +00:00
Jani Taskinen
733abc019a - Sync with HEAD 2008-12-08 12:36:10 +00:00
Zoe Slattery
dcdd18e01e More changes to allow the same tests to be used with PHP5 and PHP6 2008-12-06 12:00:37 +00:00
Scott MacVicar
895eb06945 MFH: Support versions of valgrind from SVN. The version is shown as 3.4.0.SVN 2008-11-06 03:09:41 +00:00
Felipe Pena
ade487e693 - Opss, reverted accidental changes 2008-11-03 13:07:28 +00:00
Felipe Pena
7a37fa2d6b - Revert ZEND_BEGIN_ARG_INFO change 2008-11-02 21:19:39 +00:00
Johannes Schlüter
0c6da3760b Add %S and %A to EXPECTF, they work like %s and %a but match empty strings, too 2008-10-19 18:05:43 +00:00
Rob Richards
db5da11f8a MFH: Windows requires SystemRoot env var to run tests 2008-09-30 13:21:48 +00:00
Arnaud Le Blanc
343d958b25 MFH: Fix cwd when running tests out of tree with ZTS builds (fixes #45837) 2008-09-12 14:15:05 +00:00
Arnaud Le Blanc
163202ac88 MFH: run-tests.php: Added %u|b% placeholder, like %unicode|string%, for
array keys in var_dump() output.
2008-09-08 09:23:51 +00:00
Marcus Boerger
063ed94f28 - MFH Fix -p handling 2008-08-30 11:25:34 +00:00
Felix De Vliegher
6476e43eef Added %unicode_string_optional% for differences in output between PHP 5 and 6 2008-08-29 10:25:54 +00:00
Jani Taskinen
99d3c31788 Silencio for some unnecessary errors 2008-08-14 20:53:56 +00:00
Jani Taskinen
b1511db3e1 MFH 2008-08-05 16:25:42 +00:00
Felipe Pena
593429aa15 - MFH: Fixed undefined variable 2008-08-02 13:39:42 +00:00
Antony Dovgal
3770038a66 fix typo 2008-07-25 09:55:45 +00:00
Moriyoshi Koizumi
89762bb594 - MFH: Allow the results of a partial run to be saved when -s option is
explicitly specified.
2008-07-25 09:32:23 +00:00
Lars Strojny
48013172bc Allowing "%unicode|string%" as a placeholder (backport from HEAD) 2008-07-23 16:11:00 +00:00
Felipe Pena
1fb3313f75 - MFH: The error level must be E_ALL | E_STRICT. 2008-07-22 19:59:37 +00:00
Steph Fox
6fc2b09285 MFH Add missing help text 2008-07-22 09:35:55 +00:00
Jani Taskinen
745e63f6cf MFH: Sync with PHP 6. 2008-07-21 16:08:15 +00:00
Jani Taskinen
4bc58bc957 - More stupid WS etc fixes. Plus the missing help text place holders for Steph to fill up.. 2008-07-21 11:05:23 +00:00
Jani Taskinen
24f2ac9617 MFH: Stupid WS fixes..Thanks Steph! 2008-07-21 10:48:31 +00:00
Hannes Magnusson
4cc73804a7 Run the tests with E_STRICT again
# Why isn't E_STRICT in E_ALL?
2008-07-21 09:59:37 +00:00
Hannes Magnusson
d619b57efa MFH: Add E_USER_DEPRECATED (patch by Lars Strojny) 2008-07-21 09:41:00 +00:00
Pierre Joye
2a172dcc8c - fix the fix 2008-07-16 15:41:58 +00:00
Nuno Lopes
ae8fcea231 increase pcre.backtrack_limit so that the phpinfo.phpt test passes on my computer.
we should really consider increase the default of this limit.. (but not the recursion one though)
2008-07-08 18:18:08 +00:00
Olivier Hill
a9175febd6 Fix parse error 2008-07-02 15:00:21 +00:00
Pierre Joye
7a98fdc429 - MFH: fix make test TESTS=... and dynamic extension usage on windows 2008-07-02 12:47:06 +00:00
Dmitry Stogov
e13bb4c5f6 Reverted part of Steph's patch (stdin stream must be closed to make script finish) 2008-06-24 06:05:29 +00:00
Pierre Joye
6d63a0d9d1 - remove debug code 2008-06-19 21:09:43 +00:00
Steph Fox
c1b8065dcd Oops. 2008-06-19 21:08:56 +00:00
Steph Fox
0af1218770 Two new options for Travis to come to terms with:
- --set-timeout <n> sets the timeout in seconds for the call to stream_select() during system_with_timeout()
- -x sets an environmental variable, SKIP_SLOW_TESTS, which can be checked for during a SKIPIF clause

and just for a special treat, you can have it from my working branch this time.
2008-06-19 21:08:13 +00:00
Steph Fox
9f44542741 Two new options for Travis to come to terms with:
- --set-timeout <n> sets the timeout in seconds for the call to stream_select() during system_with_timeout()
- -x sets an environmental variable, SKIP_SLOW_TESTS, which can be checked for during a SKIPIF clause
2008-06-19 21:03:36 +00:00
Antony Dovgal
a591b8bdc8 fix typo 2008-05-26 11:33:38 +00:00