Ilia Alshanetsky
47e1163e01
This patch addresses the bogus test failures due to error logging/reporting
confusion.
24 years ago
Marcus Boerger
e816c8b176
remove last line commited by error
revert log_errors
24 years ago
Marcus Boerger
35a3b071ad
forgot 'error_log=' and 'report_memleaks=1'
#commenting on php-dev
24 years ago
Marcus Boerger
4440188510
forgot 'error_log=' and 'report_memleaks=1'
#commenting on php-dev
24 years ago
Shane Caraveo
3034c31934
windows will not have these, so dont bother, but add an OS to the stuff so that it makes sense why they are N/A
24 years ago
Shane Caraveo
c82c6263e8
fix getting ini values that contain the char =
fix command line quoting. windows requires double quotes in order to handle & (in ini values) correctly
24 years ago
Marcus Boerger
4a2efd53bf
allow default ini overwrites to be overwritten themselves in --INI--
#see followup on dev list
24 years ago
Marcus Boerger
cc4c0634fe
-introduce EXPECTREGEX
-add %c for EXPECTF
#i think we must escape the special characters for EXPECTF: ".()" and such
24 years ago
Ilia Alshanetsky
ebd4182b2c
The log_errors=1 breaks a number of tests and is useless for our purposes,
removing.
24 years ago
Marcus Boerger
0718785076
-improoved number detection
-display every error/warning only once
24 years ago
Ilia Alshanetsky
26617f8b5f
Added failed test summary.
24 years ago
Jan Lehnardt
b2a8031144
- gcc prints -v information on stderr, make sure that we catch it anyway.
- I hope this does not cause problems with other compilers or shells. IMHO we
- already rely on /bin/sh anyway, right?
24 years ago
Melvyn Sopacua
1de45a050c
Implement 'no interaction' for automated tests
Implement exit status 1 to make actions for automated testing selectable
# Sorry Derick, was already working on this and the docs, see next commit
# and forthcoming email
24 years ago
Derick Rethans
6a1f477be9
[0.05]
- Disable html_errors in info sent
24 years ago
Jan Lehnardt
e96e0ae002
- use the cc that was detected by ./configure when determining version
information in run-tests.php
24 years ago
Marcus Boerger
69ce017d28
remove *.php file for EXPECTF tests, too.
24 years ago
Jan Lehnardt
70251bcac0
- be more verbose
24 years ago
Stefan Esser
e83ca7dc85
fix make test for an external build dir setup
24 years ago
Marcus Boerger
8312f1443c
Give back the php file and leave it in case test fails.
24 years ago
Moriyoshi Koizumi
a26a849bb3
Fixed typo.
24 years ago
Moriyoshi Koizumi
cd410cbf9f
\s cannot be used with ereg()
24 years ago
Sander Roobol
988c355720
The results of each test should go on a single line
24 years ago
Derick Rethans
8e9f83add2
- Stijl polizei
24 years ago
Melvyn Sopacua
7bb87c31f8
Adds a 'reason' for skipping a test.
# See modifications on ext/xml/tests/007.phpt for example
24 years ago
Derick Rethans
ca1e7301ab
- Added %x for HEX chars
- Added %d as alias for %i (too much C here :)
- Added beginning and end markers to regexp
24 years ago
Derick Rethans
03cc839d90
- Removing debugging info
24 years ago
Ilia Alshanetsky
8c6a49f001
Fixed a bug in the calculation of the POST request length.
24 years ago
Yasuo Ohgaki
e6bcb07c75
Fixed warnings
24 years ago
Derick Rethans
2b34f26b33
- Added the TEST_PHP_USER environment variable with which you can specify
additional directories with tests to run. This is ideal for having your own
test suite on your system. You can specify more directories by seperating them
with a ",", for example:
TEST_PHP_USER=/dat/dev/xdebug/tests,/dat/dev/srm/tests make test
24 years ago
Derick Rethans
e17d6518b1
- woohooo! Automatic build test submits!
24 years ago
Melvyn Sopacua
b5676a5b3e
When you say string, match at least one char in EXPECTF section
Plus a little protection against globbing like ext/foo/tests/* or worse.
# yes, I've done that
24 years ago
Derick Rethans
4fcc3df5eb
- Fix .exp output
24 years ago
Derick Rethans
f830c481f3
- Show easier parseable and greppable output
24 years ago
Derick Rethans
ede9bd58b7
- Use getenv, as $_ENV is not available when variables_order= in php.ini
does not include "E".
24 years ago
Derick Rethans
d53dd88854
- Drop requirement for php.ini-dist
- Adjust test script to hard code ini settings
24 years ago
foobar
9a010becf1
ws fixes
24 years ago
Sander Roobol
35dc97df3b
Temporary (?) workaround (?) for is_executable() on Windows.
24 years ago
Melvyn Sopacua
bcddd58a92
Add --EXPECTF-- section: 'sprintf' for EXPECT sections. See for usage
example ext/xslt/tests/009.phpt.
# To aid debugging, a little commented section is left in, this can be
# stripped in due time, or properly integrated with some --debugging flag.
# But it's quite useful, when you make such tests.
24 years ago
Rasmus Lerdorf
f32d63a3b3
Add php_ini_scanned_files() so "make test" can tell you when you have
additional .ini files that are scanned.
24 years ago
Marcus Boerger
2e90bbe3c2
Return to old counting where every test is counted (even those of skipped
extensions). Inform about the number of extensions tested and skipped.
This makes the test summary more compareable.
Maybe i'll add a parameter/env-var to skip extension tests. That way we
could fasten tests for changes in the core. But it has to wait some days.
24 years ago
Marcus Boerger
ad120d2e28
$val not in first param to sprintf
24 years ago
foobar
ac1254a59c
unify these files to conform with the new files created by run-tests.php
24 years ago
foobar
fc721174c8
- Run ext/* tests only for those modules that are actually compiled
into the php binary. (faster)
- Skip search of .phpt files if they are passed as parameters
24 years ago
Marcus Boerger
54e066b20b
Unlink output files even if test is skipped.
24 years ago
Marcus Boerger
9ede240057
-reimplemented old style output (.exp, .out)
-implemented diff format output
-delete error logs on success
@Changed regression tests produce selectable error reports. The tests now
@recognize environment variable TEST_PHP_LOG_FORMAT which can
@contain O and E for old style .out and .exp files, L for new .log format and
@D for an internal diff format that does not require systems diff. (Marcus)
#diff output makes it easier to detect the failure on huge or combined tests.
#It was discussed that the php function's diff output has the advantage that
#it is available on every system. Everyone insisting on systems diff may
#use diff on .exp and .out files.
24 years ago
Marcus Boerger
28ebb82c41
Added ARGS section to allow passing arguments to CLI tests
24 years ago
Sander Roobol
ef9014d95d
Don't know what this line was supposed to DO!?!?
24 years ago
Marcus Boerger
02a12b57e9
-additional section INI that allows to set special ini settings on call
by adding '-c foo=bar' strings to php call. Each line must have format
foo=bar. This of cause only works for cli version.
-made sections SKIPIF,INI,GET,POST optional
24 years ago
Marcus Boerger
6ff0a9ee4a
-make it run again
24 years ago
Sander Roobol
fcb692a75d
Made the tests (and not only run-tests.php) actually use php.ini-dist, and
removed unused php.ini file.
24 years ago