Mercurial > hg > nginx-tests
view README @ 1031:be45fa007655
Tests: fixed test preconditions in proxy_cache_lock_ssi.t.
Made sure that a proper request order exists between /locked and /ssi.
Previously, request /locked could be proxied after subrequest /active,
losing in the limit_req race. Also, request /locked was not properly
delayed, thus proxy cache lock could not happen later in a subrequest.
This somewhat reverts 714668aea2b0 as now inapplicable.
While there, fixed a typo.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 14 Sep 2016 17:30:58 +0300 |
parents | d39e98893265 |
children | d0edeb90c0ab |
line wrap: on
line source
Test suite for nginx. Use prove to run tests as one usually do for perl tests. Individual tests may be run as well. Note: tests run nginx (and backend daemons if needed) listening on localhost and may use various ports in 8000 .. 8999 range. Usage: $ TEST_NGINX_BINARY=/path/to/nginx prove . By default tests expect nginx binary to be at ../nginx/objs/nginx. Environment variables: TEST_NGINX_BINARY Sets path to nginx binary to be tested, defaults to "../nginx/objs/nginx". TEST_NGINX_MODULES Sets path to modules directory, defaults to dirname of TEST_NGINX_BINARY. TEST_NGINX_VERBOSE Be a bit more verbose (in particular, print requests sent and responses got from nginx). Note that this requires prove -v (or HARNESS_VERBOSE). TEST_NGINX_LEAVE If set, temporary directory with configs and logs won't be deleted on test completion. Useful for debugging. TEST_NGINX_CATLOG Cat error log to stdout after test completion. Useful for debugging. TEST_NGINX_UNSAFE Run unsafe tests. Happy testing!