Commit Graph

466 Commits

Author SHA1 Message Date
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
Zoe Slattery
0cf47e6f11 Added --XFAIL-- section 2008-05-25 16:05:04 +00:00
Nuno Lopes
95b627f29b detect test cases with duplicated sections 2008-03-17 17:18:19 +00:00
Lars Strojny
da494df864 Using new magic constant __DIR__ in run-tests.php 2008-03-05 20:10:12 +00:00
Felipe Pena
aafff71c86 New E_ALL value 2008-02-24 12:17:25 +00:00
Ilia Alshanetsky
77efd89617 Disable mbstring overload 2008-02-12 18:23:14 +00:00
Nuno Lopes
46b9c23008 fix ===DONE=== with windows EOLs 2008-02-08 16:46:23 +00:00
Marcus Boerger
330c8b49f8 - MFH valgrind detection, note in header 2008-01-15 13:03:54 +00:00
Marcus Boerger
041bf3518c - MFH Show info for CL and CGI if both are going to be used 2008-01-06 16:48:11 +00:00
Greg Beaver
27ee8f8806 remove potential preg warnings if --EXPECTHEADERS-- is combined with --EXPECTF-- or --EXPECTRE-- 2008-01-05 21:39:53 +00:00
Greg Beaver
f61ba6295a implement --FILE_EXTERNAL-- section for using an external file as --FILE--, use CGI for --EXPECTHEADERS--, fix --POST_RAW-- 2008-01-05 21:05:06 +00:00
Sebastian Bergmann
9044a48291 Leftover: Bump copyright year. 2008-01-01 06:15:40 +00:00
Dmitry Stogov
94a50ae0c9 Fixed %f regex 2007-12-25 12:06:34 +00:00
Raghubansh Kumar
e54a855955 Changing the regex for %f so the it will match e-, e+ and e. 2007-12-24 04:23:04 +00:00
Hannes Magnusson
4de3c0b985 Check if we know which php executable we should use
# Fixes weird test failures when TEST_PHP_EXECUTABLE isn't set
2007-12-17 11:00:16 +00:00
Antony Dovgal
f5d0e57bcc MFH: add support for Valgrind 3.3.0 (which doesn't have --log-file-exactly option) 2007-12-12 09:20:54 +00:00
Marcus Boerger
d28117190f - - Allow to check the out,exp and diff results on console while executing the tests 2007-12-05 14:54:08 +00:00
Marcus Boerger
bbf7260cde - Allow to specify php executable on commandline 2007-12-05 13:55:46 +00:00
Jani Taskinen
f83871a71d MFH:- Fixed bug #43035: ignore_repeated_errors=On causes lot of tests to fail 2007-11-21 08:20:22 +00:00
Zoe Slattery
727a35f1ca MFH: Changing the regex for %f so the it will match E-, E+ and E. 2007-11-12 18:26:37 +00:00
Marcus Boerger
552b964e22 - Add hash bang line 2007-11-06 14:38:10 +00:00
Nuno Lopes
40085b06f2 changes to run-tests.php:
- change %s to %a
- make %s = [^\r\n]+
- fix tests accordingly
2007-09-14 15:28:03 +00:00
Jani Taskinen
52bb8f78a0 MFH:- Allow using * in test filenames to match pattern 2007-07-31 21:29:21 +00:00
Jani Taskinen
8684e7495f MFH: - Made build system less major version dependant to ease MFB/MFH 2007-07-26 22:45:59 +00:00
Dmitry Stogov
a3ba415e91 Fixed "make test" 2007-07-04 10:16:22 +00:00
Dmitry Stogov
e45dab8c49 Fixed CGI tests 2007-06-29 09:49:21 +00:00
Antony Dovgal
0b157a6f84 enable display_startup_errors, fix test 2007-06-05 10:59:25 +00:00
Antony Dovgal
ccd16d09c0 MFH 2007-05-27 19:23:09 +00:00
Ilia Alshanetsky
146a600711 Added support for --GZIP_POST-- and --DEFLATE_POST-- that allows emulation
of compressed POST input
2007-05-07 18:40:33 +00:00
Antony Dovgal
e03eadf633 MFH: add USE_ZEND_ALLOC env var 2007-05-02 15:41:06 +00:00
Antony Dovgal
ea7f23b053 MFH 2007-04-23 11:19:15 +00:00
Antony Dovgal
a0370cd797 add tests for CGI 2007-04-17 19:49:26 +00:00
Marcus Boerger
acf92f283a - MFH Allow to load multipe extensions via -d 2007-03-27 20:28:06 +00:00
Nuno Lopes
a875e10909 convert all ereg*() calls to preg_match(), so that we become future-proof (ereg is scheduled for removal in PHP 6) 2007-02-08 15:22:03 +00:00
Nuno Lopes
3fdab070a9 MFH: use getenv() instead of _ENV
enable multiple error reporting on the same test
2007-02-07 11:31:22 +00:00
Ilia Alshanetsky
2df7386475 Update copyright year
# The rest of the files were already updated by Sebastian
2007-01-01 19:32:10 +00:00
Nuno Lopes
dae5040b61 MFH: force tidy.clean_output=0 2006-12-28 15:07:45 +00:00
Ilia Alshanetsky
94e3f478d7 Fixed handling of multiple cookies with the same name.
Added support for cookies into run-tests.php
2006-12-09 14:14:29 +00:00
Antony Dovgal
dad67b1f65 MFH: look for tests in sapi/cli 2006-12-04 13:07:26 +00:00
Antony Dovgal
7172a53c3a do not set an env variable without a name and a value 2006-11-23 20:06:10 +00:00
Michael Wallner
a09ef37d30 - fix ENV section handling 2006-11-22 10:45:06 +00:00
Nuno Lopes
4a162b71a2 add --STDIN-- support 2006-09-14 16:58:52 +00:00
Antony Dovgal
41bd5790cf MFH: make run-tests to work with directories containing spaces (bug #38558)
Patch by danielc at analysisandsolutions dot com
2006-08-23 07:02:59 +00:00
Dmitry Stogov
3fd1e9c3db Fix "make test" on win32 2006-08-22 05:00:51 +00:00
Antony Dovgal
2dbce548a8 fix previous patch 2006-08-14 21:08:16 +00:00
Antony Dovgal
2f01ddff7f make sure USE_ZEND_ALLOC is always 1 2006-08-14 10:29:20 +00:00
Antony Dovgal
886d302575 suppress errors from date() if no date.timezone set
don't try to look for libtool if $sys_libtool_path is empty
2006-08-07 21:27:40 +00:00
Antony Dovgal
29a7498965 MFH: disable --leak-check 2006-07-28 12:58:59 +00:00
Antony Dovgal
4038877d85 turn Off Zend MM and check for leaks when running tests through valgrind 2006-07-26 11:11:11 +00:00
Nuno Lopes
46c036cd4d make valgrind trace child processes. useful for the PCNTL extension (fork()), for example 2006-07-17 11:43:48 +00:00
Nuno Lopes
0433d29020 now they are really equivalent.. 2006-07-17 10:48:11 +00:00
Ilia Alshanetsky
cd0e0124c9 Don't use regex where none is needed. 2006-07-17 03:57:31 +00:00
Dmitry Stogov
a953a1abda Fixed CGI tests. 2006-05-24 13:28:59 +00:00
Marcus Boerger
216049bb27 - MFH '_' is valid in test blocks 2006-05-16 23:05:49 +00:00
Marcus Boerger
a4af2a9d16 - MFH add support for --EXPECTHEADERS-- 2006-05-13 14:01:58 +00:00
Marcus Boerger
5efe53c596 - MFH add E_RECOVERABLE as default 2006-05-10 20:00:26 +00:00
Pierre Joye
3a7aee2472 - remove debug part
nota bene, there is still work in this area, but this is a start
2006-05-03 21:37:16 +00:00
Pierre Joye
9e4283227d - add support for POST_RAW, allow to pass raw POST data
- add support for TEST_PHP_CGI_EXECUTABLE env variable, it is now possible
  to set both TEST_PHP_EXECUTABLE and CGI
2006-05-03 21:33:44 +00:00
Marcus Boerger
06d235fbf1 - MFH Fix writing faillog with redirected tests 2006-03-11 18:13:37 +00:00
Marcus Boerger
941d86a204 - MFH Fix test results with redirected tests 2006-03-11 17:58:24 +00:00
Marcus Boerger
b80f9567d5 - Load list of extensions to test from php that is being tested rather than
from php running the tests
2006-03-11 16:37:53 +00:00
Antony Dovgal
f2ac3274d7 fix typo 2006-02-16 06:29:40 +00:00
Marcus Boerger
9c614f8f8f - Synch 2006-02-12 18:51:12 +00:00
Ilia Alshanetsky
64972c02de Simplify test code 2006-02-05 17:33:11 +00:00
Antony Dovgal
26ef74f867 MFH: fix error message on make test when bison is not installed 2006-01-18 17:59:20 +00:00
Michael Wallner
8f5005e4b6 MFH: fix CGI SAPI check on Windows 2006-01-11 15:19:52 +00:00
Marcus Boerger
f9bfdc921a - MFH 2006-01-04 15:17:41 +00:00
Marcus Boerger
43fdbe99cd - MFH 2006-01-04 15:08:02 +00:00
foobar
5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
Marcus Boerger
9846878450 - MFH Fix environment handling 2005-12-31 17:48:26 +00:00
Marcus Boerger
c2c7bc6a10 - WS 2005-12-30 15:05:17 +00:00
Marcus Boerger
2a140b8f40 - Allow to specify ini to use for test executeable 2005-12-30 13:39:54 +00:00
Marcus Boerger
dc7ecd41ef - If user wnats help, don't complain about missing environment 2005-12-30 13:31:48 +00:00
Marcus Boerger
b1cb83f3c9 - MFH Fix handling of bork tests 2005-12-23 19:40:12 +00:00
Marcus Boerger
970298401b - MFH Add --[keep|show]-[all|skip|php] switches 2005-12-21 22:23:55 +00:00
Antony Dovgal
670b075f87 fix notice 2005-12-20 16:17:30 +00:00
Marcus Boerger
86ecf121e5 - MFH Fix --version 2005-12-18 15:47:07 +00:00
Marcus Boerger
2b413f7af2 - MFH End test script when detecting '===DONE===' that way showing memleaks 2005-12-18 14:50:33 +00:00
Marcus Boerger
6370ae56ed - MFH Increase timeut for -m testing 2005-12-18 12:08:18 +00:00
Ilia Alshanetsky
87db368a75 Added token for capturing arbitrary whitespace blocks inside text. 2005-12-17 16:33:38 +00:00
foobar
933d1d174c MFH 2005-12-10 18:26:52 +00:00
Marcus Boerger
b8572a0c9c - MFH Section FILE does not exist for redirection tests 2005-12-09 09:50:30 +00:00
Marcus Boerger
6b86285dd2 - MFH Add missing newline 2005-12-09 00:30:41 +00:00
Marcus Boerger
fbeb8ae0d4 - Revert piece of MFH that shows an inconsistency - actually we should fix
this fread() issue.
2005-12-09 00:22:21 +00:00
Marcus Boerger
a4d0a4c625 - MFH
. Add ability to create temp files in separate dir and keep them.
  . Add ability to create links in html results as table.
2005-12-08 22:51:01 +00:00
foobar
bfa084ddba MFH:- Made tests that require CGI skipped if it is not available 2005-12-07 11:28:58 +00:00
foobar
241659ff70 MFH: fixed wrong logic 2005-12-07 11:12:52 +00:00
foobar
e5bd8e32f5 MFH: fixed error messages 2005-12-07 10:08:42 +00:00
Ilia Alshanetsky
0e46f5113c Fixed filename picker.
Various modernizations of the script.
2005-12-07 02:01:58 +00:00
Marcus Boerger
8c8907458c - MFH
. Support for '--' style switches
  . Modularize output
  . Better valgrind integration (valgrind 3.0.0+ required now) (-m)
  . Ability to generate an additional html style output log (--html)
  . Ability to test unicode + native tests in one go (-U)
  . Show list of leaked files in summary if any
  . Use basename correct
2005-12-07 00:03:46 +00:00
Marcus Boerger
cb83e27b02 - MFH (faillog, streams, counting, .......) 2005-10-06 09:42:17 +00:00
Ilia Alshanetsky
be945f9fe2 Make use of 5.0+ features 2005-09-11 17:33:15 +00:00
Ilia Alshanetsky
a022e10c2d Simplify code by making use 5.1+ functions 2005-09-06 00:42:20 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Hartmut Holzgraefe
46a669b7fa make skipif test use ini options specified by -d command line options 2005-08-02 17:05:01 +00:00
Marcus Boerger
ea71e02c7a - Add ENV support (mike) 2005-07-29 17:25:38 +00:00
Marcus Boerger
ef4931f627 - Show end of relay testing block 2005-07-18 00:19:28 +00:00
Jon Parise
6f1261c70c Removing the automake-related output. The build no longer uses automake.
While I'm here, rewrite the PHP_AUTOCONF-related code to more closely
match the conventions used elsewhere in this section.  The result should
be functionally the same as before.
2005-07-11 06:32:02 +00:00
foobar
60ce60d395 show ugly full path for failed redirected tests 2005-07-09 02:41:19 +00:00
foobar
c0d7215b81 Sanitazione 2005-07-08 21:46:23 +00:00
Wez Furlong
626d318f07 sort redirected tests 2005-07-07 13:58:02 +00:00
Wez Furlong
6253c6c5e1 Fix 2 bugs:
- summary is only displayed if 2 or more tests were detected
- error out of a bogus test name is passed in
2005-07-07 12:58:47 +00:00
Wez Furlong
5b84ae26ab Add a new kind of test to the test harness. REDIRECTTEST sections allow an
extension to piggy-back on the tests defined under another dir and run those.

Example of its use follows shortly with pdo tests.
2005-07-06 06:06:23 +00:00