Mercurial > hg > nginx-tests
changeset 106:7a712d3909ba
Tests: add cache availability checks.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 13 Oct 2009 05:16:45 +0400 |
parents | bb5b5e69b45e |
children | 1c0ec30614c6 |
files | lib/Test/Nginx.pm proxy-cache.t ssi.t |
diffstat | 3 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/Test/Nginx.pm Tue Oct 13 03:05:19 2009 +0400 +++ b/lib/Test/Nginx.pm Tue Oct 13 05:16:45 2009 +0400 @@ -59,6 +59,7 @@ flv => '--with-http_flv_module', rewrite => '(?s)^(?!.*--without-http_rewrite_module)', gzip => '(?s)^(?!.*--without-http_gzip_module)', + cache => '(?s)^(?!.*--without-http-cache)', ); my $re = $regex{$feature};
--- a/proxy-cache.t Tue Oct 13 03:05:19 2009 +0400 +++ b/proxy-cache.t Tue Oct 13 05:16:45 2009 +0400 @@ -21,7 +21,7 @@ select STDERR; $| = 1; select STDOUT; $| = 1; -my $t = Test::Nginx->new()->has('gzip')->plan(9); +my $t = Test::Nginx->new()->has('gzip')->has('cache')->plan(9); $t->write_file_expand('nginx.conf', <<'EOF');