Mercurial > hg > nginx-tests
view README @ 72:24143894b91b
Tests: shut up warnings for TODO tests.
Recent versions of Test::Simple/More/Builder (0.61+) throw warnings on undef
in like(). While this is good for working tests, it's not for TODO ones.
Other tricky part is that neither "no warnings" pragma nor $^W can be used to
avoid warnings. The only way that works is to redefine $SIG{__WARN__}.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 17 Feb 2009 15:03:00 +0300 |
parents | bc3351f157ef |
children | 342b31c8f3af |
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, 8110, 8111, 8143, 8144. 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.