view README @ 51:d59ae7bab0a6

Tests: cat error log to stdout if TEST_NGINX_CATLOG set. Note: this isn't really TAP complaint and may confuse Test::Harness. But it's useful for development and analysing test failures by hand. use
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 24 Nov 2008 13:06:21 +0300
parents 9a7158a8609a
children bc3351f157ef
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.

Tests assume that nginx sources are in directory nginx at the same level
as directory with tests, and nginx was already configured and built (i.e.
nginx binary available as ../nginx/objs/nginx from test directory).

Note: some tests may fail since they are for bugs not fixed in public code.

Note: tests run nginx (and backend daemons if needed) listening on localhost.
Currently this includes following ports: 8025, 8026, 8080, 8081.

Tests for memcached required memcached itself and Cache::Memcached to be
installed.

Currently each test creates it's own temporary directory and uses it for
logs etc.  One may instruct tests not to remove the temp directory (e.g.
for analysis of failed test) by setting LEAVE environment variable.