Gabriel Caruso
ded3d984c6
Use EXPECT instead of EXPECTF when possible
...
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00
Gabriel Caruso
21e3b0c70c
Remove trailing whitespace in inc files
2018-02-10 19:20:23 +01:00
Remi Collet
ee84f34344
rename test
2017-09-19 07:26:53 +02:00
Remi Collet
cfc6c4d297
Fixed Bug #75212 php_value acts like php_admin_value
2017-09-18 18:08:51 +02:00
Sara Golemon
d316ba2d65
Remove user=foo from FPM test config
...
This setting has nothing to do with what's being tested,
and on any system without a "foo" user we'll get a spurious error.
2017-05-24 15:07:24 -07:00
Sara Golemon
d8d1c78ed0
Skip FPM tests when running as root (unless requested)
...
FPM must be configured as a user.
Normally it defaults to the current user,
but if that's root it'll fail to startup
unless the --run-as-root option is provided.
Extend that logic into the test runner so that
we don't fail for stupid reasons.
If you're running `make test` as root and you want
FPM tests to run anyway, set TEST_FPM_RUN_AS_ROOT=1
in your environment.
2017-05-24 13:58:18 -07:00
Sara Golemon
b63c45c69e
Try fallback on IPv4 ANYADDR when IPv6 ANYADDR fails
...
https://bugs.php.net/bug.php?id=74166
A host system with no/limited IPv6 support will fail at binding
the IPv6 ANYADDR address (::) as the address family is unsupported.
Deal with this by handling failure to implicitly bind to ::
as a soft failure, falling back to 0.0.0.0.
If binding to :: failed for some other reason (e.g. port in use)
then binding to 0.0.0.0 will likely fail as well, but we'll
get appropriate warnings for that.
2017-03-08 11:02:54 -08:00
Jakub Zelenka
df16579642
Try fpm path for testing in sbin as it is default target
2017-01-29 20:43:58 +00:00
Mitch Hagstrand
fd92b91188
Increase wait time for tests involving sockets to improve Travis relability
...
1. Increased sleep time from 25ms to 50ms
2. Added sleep to shutdown handlers
2017-01-13 06:45:04 +00:00
Remi Collet
eb02876e74
improve FPM tests (mostly for systemd build)
2017-01-08 19:02:50 +00:00
Mitch Hagstrand
3401f553b9
Fixes for session and fpm tests in PHP7.0 branch
...
1. Increased the timeout on sapi/fpm tests to match the cli server
2. Disabled session GC in session_set_save_handler_basic.phpt
3. Fixed GC in save_handler.inc to delete files based on age
2017-01-06 19:55:57 -08:00
Dmitry Stogov
3817a2e6d5
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fixed test
Updated NEWS
Improvement for bug73297
Simplify ext/standard/tests/http/bug73297.phpt
http_fopen_wrapper.c - bug#73297 Skip past "100 Continue" responses
Add failing test for bug#73297
2016-11-17 15:58:38 +03:00
Dmitry Stogov
c2d6ffb85f
Fixed test
2016-11-17 15:57:40 +03:00
Remi Collet
9622f973a5
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
FPM: add test for CVE-2016-5385
2016-07-22 09:36:36 +02:00
Remi Collet
fb4a6dc0f1
FPM: add test for CVE-2016-5385
2016-07-22 09:35:09 +02:00
Ferenc Kovacs
8f35ee49ee
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
mark frequent intermittent fpm test with XFAIL
2016-04-18 09:04:55 +02:00
Ferenc Kovacs
3a16f511d9
mark frequent intermittent fpm test with XFAIL
2016-04-18 09:04:27 +02:00
Xinchen Hui
d7ff107654
Fixed bug #70540 (sapi/fpm/tests/008.phpt and 016.phpt should be skipped on some platforms)
2015-11-02 16:43:28 +08:00
Xinchen Hui
8dd5e1c2b5
Add test_fpm_conf to skip some tests ranth than mark --xfail--
2015-11-02 16:42:11 +08:00
Xinchen Hui
460e2e6a04
Fixed test in some cases(for more children, needs more time)
2015-05-07 19:25:04 +08:00
Rasmus Lerdorf
50c721a623
These tests all assume that IPV6 is available.
2015-01-09 17:24:48 -08:00
Remi Collet
744ada7d9d
Fix bug #68526 Implement POSIX Access Control List for UDS
...
- add --with-fpm-acl build option which allow to manage ACL
on Unix Domain Socket
- add listen.acl_users pool option
- add listen.acl_groups pool option
Keep old behavior (chmod) if option not used or not supported.
2014-12-10 08:15:21 +01:00
Remi Collet
cb1a297bf4
XFAIL as catch_workers_output = yes seems not reliable
2014-12-01 07:28:49 +01:00
Remi Collet
3a3f67f79b
minor typo in test
2014-11-22 10:29:51 +01:00
Remi Collet
fd5c421a00
add test for global / pool prefix and bug #68478
2014-11-22 10:29:05 +01:00
Remi Collet
1e14f805f9
add test for fastcgi_finish_request()
2014-11-21 11:28:20 +01:00
Remi Collet
5234c2941f
add test for #68391
2014-11-21 07:36:34 +01:00
Remi Collet
6e1e113b91
adapt test for error message introduce in fix for #68463
2014-11-20 15:15:54 +01:00
Remi Collet
7ef559ff80
run a few request in this test
2014-11-20 14:45:17 +01:00
Remi Collet
1939097ede
Fixed #68458 Change pm.start_servers default warning to notice
...
Add another test
014 checks that no "notice" are traced when log_level=warning
015 checks that "notice" are traced when log_level=notice
2014-11-20 08:12:27 +01:00
David Zuelke
a128cbad57
fix test description
2014-11-20 08:11:44 +01:00
David Zuelke
49be4af42b
tests for #895
2014-11-20 08:11:44 +01:00
Remi Collet
f164df0b7b
add test for bug #68381
2014-11-18 17:45:50 +01:00
Remi Collet
ec26d7a80f
simplify fpm tests
2014-11-18 13:11:53 +01:00
Remi Collet
51394dff3f
Add test for bug #68442
...
Add another helper function fpm_display_log
Restore change from c996a989 badly reverted in 8c0cc49
2014-11-18 11:08:49 +01:00
Remi Collet
8c0cc49b9b
Add various tests for FPM
...
- covering recent bugs (68420, 68421, 68423, 68428)
- for UDS
- for ping and status URI
- for multi pool and multi mode
2014-11-18 08:07:45 +01:00
Remi Collet
a740f9e783
Include small MIT FastCGI client library from
...
https://github.com/adoy/PHP-FastCGI-Client
Add run_request function to easily run a FastCGI call,
which is needed for new tests.
2014-11-18 08:01:18 +01:00
Remi Collet
d8868b654e
Add new FPM test for IPv4/IPv6
...
Use 9000+PHP_INT_SIZE as poprt
- to avoid using default 9000
- to allow multipole 32/64 bits simultaneous run
2014-11-17 15:22:04 +01:00
Ferenc Kovacs
200e407b24
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
NEWS entry for previous commit
add IPv6 support to php-fpm
2014-10-03 11:39:09 +02:00
Robin Gloster
15ba757a2b
add IPv6 support to php-fpm
2014-10-03 11:35:27 +02:00
Veres Lajos
a7ec000f35
a few typofixes
2014-02-14 17:16:17 +02:00
Gernot Vormayr
dff0d51243
Add some basic and apparmor tests to fpm
2014-01-17 12:49:07 +04:00