summaryrefslogtreecommitdiff
path: root/tests/LightyTest.pm
Commit message (Collapse)AuthorAgeFilesLines
* [core] _WIN32 prefer WSAPoll()Glenn Strauss2023-05-031-1/+4
| | | | | | | | | | | | Note: TCP half-close is reported by WSAPoll() as POLLHUP event. (e.g. TCP half-close from shutdown(fd, SHUT_WR)) TODO: If performance tests of select() vs WSAPoll() do not show a a measurable difference, select() may be preferred over WSAPoll(). For now, make both "poll" and "select" available options in _WIN32. (On other platforms, lighttpd build does not built code to use select() when poll() is available on the platform.)
* [tests] _WIN32 cygwin test supportGlenn Strauss2023-05-031-1/+8
|
* [tests] _WIN32 adjustments in LightyTest.pmGlenn Strauss2023-05-031-23/+80
| | | | separate cygwin paths from Windows native paths
* [tests] disable Nagle on client, remove sleepsGlenn Strauss2023-01-021-26/+16
| | | | disable Nagle on client, remove sleeps for tests marked for slow CRLF
* [tests] revert _WIN32 adjustments in LightyTest.pmGlenn Strauss2022-01-141-34/+21
| | | | This reverts commit c1bc5efe9a2fb424ba432cbe03ea5d1c525519e6.
* [tests] _WIN32 adjustments in LightyTest.pmGlenn Strauss2022-01-111-21/+34
| | | | | | | separate cygwin paths from Windows native paths remove unnecessary variables remove unnecessary file copies
* [core] allow tests/tmp/bind.conf override (#3137)Glenn Strauss2022-01-101-13/+30
| | | | | | | | | optional bind spec override for tests/*.conf, e.g. for use on platforms w/o socket activation x-ref: "TRACEME environment option in tests broken with LISTEN_PID" https://redmine.lighttpd.net/issues/3137
* [core] allow LISTEN_PID to be ppid if TRACEME (fixes #3137)Glenn Strauss2022-01-101-0/+4
| | | | | | | | | allow LISTEN_PID to be ppid (parent pid) if TRACEME set in environment (e.g. for strace, gdb on Linux; valgrind starts lighttpd as LISTEN_PID) x-ref: "TRACEME environment option in tests broken with LISTEN_PID" https://redmine.lighttpd.net/issues/3137
* [tests] force Fcntl::F_SETFD() autovivification (#3110)Glenn Strauss2021-10-101-1/+1
| | | | | | x-ref: "RPM build fails at Lighttest.pm" https://redmine.lighttpd.net/issues/3110
* [tests] force POSIX::WNOHANG() autovivification (fixes #3110)Glenn Strauss2021-10-101-1/+1
| | | | | | x-ref: "RPM build fails at Lighttest.pm" https://redmine.lighttpd.net/issues/3110
* [tests] IO::Socket::INET->new( Timeout => 1 )Glenn Strauss2021-09-081-3/+11
| | | | (to be used when supported by the underlying Perl lib)
* [tests] disable secdownload HMAC tests for NSSGlenn Strauss2021-05-071-1/+2
| | | | NSS crypto lib does not expose interfaces to HMAC funcs
* [tests] use ephemeral ports in testsGlenn Strauss2021-01-051-17/+48
| | | | | avoid spurious test failures due to conflicts with ports in use by other processes, which might occur when tests use hard-coded ports
* [tests] slight speed up checking for server readyGlenn Strauss2020-12-241-2/+2
| | | | make connection attempt every 10ms instead of every 20ms
* [tests] remove FastCGI test dependency on PHPGlenn Strauss2020-12-231-1/+0
|
* [tests] allow LIGHTTPD_EXE_PATH overrideGlenn Strauss2020-11-091-0/+4
| | | | | | | | | | allow LIGHTTPD_EXE_PATH override to be able to run source tree tests/*.t against installed executable, e.g. LIGHTTPD_EXE_PATH=/usr/sbin/lighttpd Beware that tests might not pass or might not be supported if the target executable is not the same version as that of the source tree (Possible use for this override is by Debian autopkgtests)
* [tests] detect multiple SSL/TLS/crypto providersGlenn Strauss2020-10-191-0/+13
|
* [tests] simulate slow, small packets more quicklyGlenn Strauss2020-10-191-5/+5
| | | | | | | simulate slow, small packets more quickly 1ms between chars is plenty slow; 100ms is excessive fixup
* [tests] has_feature() helper funcGlenn Strauss2019-05-131-0/+13
| | | | | has_feature() helper func so that tests can be skipped if support is not present
* [tests] reduce time waiting for backends to startGlenn Strauss2017-03-191-2/+2
| | | | | | | | reduce time spent waiting for backends to start tests check for active listening port before proceeding test runs now complete in about 2/3 the time
* [core] better DragonFlyBSD support (fixes #2746)Glenn Strauss2016-08-201-1/+1
| | | | | | | | (thx xenu) x-ref: "[PATCH] better DragonFlyBSD support; fix crash" https://redmine.lighttpd.net/issues/2746
* [core] check if client half-closed TCP if POLLHUP (#2743)Glenn Strauss2016-08-061-0/+1
| | | | | | | | | | | | Check if client half-closed TCP connection if POLLHUP is received. This more robustly handles if client called shutdown(fd, SHUT_WR). This patch reverts commit:ab05eb7c which should now be handled properly. (Time will tell.) x-ref: "1.4.40/41 mod_proxy, mod_scgi may trigger POLLHUP on *BSD,Darwin" https://redmine.lighttpd.net/issues/2743
* [tests] do not half-close socket before having received the response (fixes ↵Stefan Bühler2015-12-041-1/+0
| | | | | | | | #2688) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3058 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] fix warning about newline in filenameStefan Bühler2015-08-221-0/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3021 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] search for perl in PATH instead of /usr/bin; whitespace + test ↵Stefan Bühler2015-08-221-21/+58
| | | | | | | | config cleanups From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3019 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] improve valgrind and strace TRACEME, disable condition logging in ↵Stefan Bühler2015-02-081-3/+3
| | | | | | | | | | | | normal configs - condition logging is way too noisy and rarely useful - increate timeout to wait for port bind; if the process dies we fail early anyway From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2978 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] use list for perl exec to skip the sh wrapperlighttpd-1.4.33Stefan Bühler2013-09-061-8/+13
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2903 152afb58-edef-0310-8abb-c4023f1b3aa9
* Fix request parser to handle packets with splitted \r\n\r\n (fixes #2105)Stefan Bühler2009-11-291-33/+57
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2696 152afb58-edef-0310-8abb-c4023f1b3aa9
* Fix accesslog escape segfault (#1551)Stefan Bühler2009-10-161-1/+1
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2664 152afb58-edef-0310-8abb-c4023f1b3aa9
* tests: fix endless loop if connect fails without the child dyingStefan Bühler2009-08-081-0/+7
| | | | | | | | | Found as make check on ubuntu hardy hanged itself, as perl-base dependencies were broken and didn't require /etc/protocols but it needed the file. git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2610 152afb58-edef-0310-8abb-c4023f1b3aa9
* Finally removed spawn-fcgiStefan Bühler2009-04-031-3/+10
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2423 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] Remove pidfile from test systemStefan Bühler2008-07-291-19/+6
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2242 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] Fixed test system, use foreground daemons and waitpidStefan Bühler2008-07-291-38/+109
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2241 152afb58-edef-0310-8abb-c4023f1b3aa9
* added support to run dtruss as TRACEMEJan Kneschke2008-03-101-0/+2
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2122 152afb58-edef-0310-8abb-c4023f1b3aa9
* r2124@chromobil: stefan | 2008-02-27 19:34:57 +0100Stefan Bühler2008-02-271-1/+1
| | | | | | | test procedure: increased select timeout after killing lighttpd to avoid "Address already in use". git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2100 152afb58-edef-0310-8abb-c4023f1b3aa9
* don't send a Content-Length for 1xx, 204 and 304 (fixes #1002)Jan Kneschke2007-08-181-10/+22
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1946 152afb58-edef-0310-8abb-c4023f1b3aa9
* merged [1174] and [1224]Jan Kneschke2006-09-211-3/+5
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1331 152afb58-edef-0310-8abb-c4023f1b3aa9
* merged [1055], [1056], [1068], [1172], [1176]Jan Kneschke2006-09-071-0/+3
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1286 152afb58-edef-0310-8abb-c4023f1b3aa9
* merged [1105]Jan Kneschke2006-09-071-3/+2
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1283 152afb58-edef-0310-8abb-c4023f1b3aa9
* give a warning on duplicate response headersJan Kneschke2006-01-141-7/+8
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@952 152afb58-edef-0310-8abb-c4023f1b3aa9
* let u know what's wrongmOo2005-09-291-1/+6
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@760 152afb58-edef-0310-8abb-c4023f1b3aa9
* make it works for both autotools/sconsmOo2005-09-291-3/+14
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@759 152afb58-edef-0310-8abb-c4023f1b3aa9
* a simple connect() on the port is better and fasterlighttpd-1.4.3Jan Kneschke2005-09-011-6/+7
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@674 152afb58-edef-0310-8abb-c4023f1b3aa9
* use netstat to check if a process is listening on port 1026Jan Kneschke2005-09-011-8/+5
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@673 152afb58-edef-0310-8abb-c4023f1b3aa9
* replace 'localhost' by gethostbyaddr for 127.0.0.1Jan Kneschke2005-09-011-1/+6
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@669 152afb58-edef-0310-8abb-c4023f1b3aa9
* minor portability fixesJan Kneschke2005-09-011-9/+4
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@668 152afb58-edef-0310-8abb-c4023f1b3aa9
* added tests for keep-alive and setenv and passed a ARRAY ref instead of a ↵Jan Kneschke2005-08-311-2/+8
| | | | | | HASH ref git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@654 152afb58-edef-0310-8abb-c4023f1b3aa9
* do a long wait if the lighttpd isn't starting up fast enoughlighttpd-1.4.2Jan Kneschke2005-08-291-4/+4
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@647 152afb58-edef-0310-8abb-c4023f1b3aa9
* make 'make distcheck' happy and install files into _build/tests/Jan Kneschke2005-08-291-9/+15
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@645 152afb58-edef-0310-8abb-c4023f1b3aa9
* run tests in build root (merged #228)Jan Kneschke2005-08-291-11/+18
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@640 152afb58-edef-0310-8abb-c4023f1b3aa9