README 956 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. Test suite for nginx.
  2. Use prove to run tests as one usually do for perl tests. Individual tests
  3. may be run as well.
  4. Note: tests run nginx (and backend daemons if needed) listening on localhost
  5. and may use various ports in 8000 .. 8999 range.
  6. Usage:
  7. $ TEST_NGINX_BINARY=/path/to/nginx prove .
  8. By default tests expect nginx binary to be at ../nginx/objs/nginx.
  9. Environment variables:
  10. TEST_NGINX_BINARY
  11. Sets path to nginx binary to be tested, defaults to "../nginx/objs/nginx".
  12. TEST_NGINX_VERBOSE
  13. Be a bit more verbose (in particular, print requests sent and responses
  14. got from nginx). Note that this requires prove -v (or HARNESS_VERBOSE).
  15. TEST_NGINX_LEAVE
  16. If set temporary directory with configs and logs won't be deleted on test
  17. completion. Usefull for debugging.
  18. TEST_NGINX_CATLOG
  19. Cat error log to stdout after test completion. Usefull for debugging.
  20. TEST_NGINX_UNSAFE
  21. Run unsafe tests.
  22. Happy testing!