Mercurial > hg > nginx-tests
comparison proxy-cache.t @ 104:8bc9de6559a1
Tests: add gzip module checks.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 13 Oct 2009 02:17:52 +0400 |
parents | 6303927c18d2 |
children | 7a712d3909ba |
comparison
equal
deleted
inserted
replaced
103:4ae2198b97ec | 104:8bc9de6559a1 |
---|---|
7 ############################################################################### | 7 ############################################################################### |
8 | 8 |
9 use warnings; | 9 use warnings; |
10 use strict; | 10 use strict; |
11 | 11 |
12 use Test::More tests => 9; | 12 use Test::More; |
13 | 13 |
14 BEGIN { use FindBin; chdir($FindBin::Bin); } | 14 BEGIN { use FindBin; chdir($FindBin::Bin); } |
15 | 15 |
16 use lib 'lib'; | 16 use lib 'lib'; |
17 use Test::Nginx qw/ :DEFAULT :gzip /; | 17 use Test::Nginx qw/ :DEFAULT :gzip /; |
19 ############################################################################### | 19 ############################################################################### |
20 | 20 |
21 select STDERR; $| = 1; | 21 select STDERR; $| = 1; |
22 select STDOUT; $| = 1; | 22 select STDOUT; $| = 1; |
23 | 23 |
24 my $t = Test::Nginx->new(); | 24 my $t = Test::Nginx->new()->has('gzip')->plan(9); |
25 | 25 |
26 $t->write_file_expand('nginx.conf', <<'EOF'); | 26 $t->write_file_expand('nginx.conf', <<'EOF'); |
27 | 27 |
28 master_process off; | 28 master_process off; |
29 daemon off; | 29 daemon off; |