Mercurial > hg > ngx_http_gunzip_filter_module
comparison t/gunzip_memcached.t @ 21:c0301992025a draft default tip
Gunzip: tests cleanup.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 07 Sep 2012 19:38:56 +0400 |
parents | 1adc6718cc05 |
children |
comparison
equal
deleted
inserted
replaced
20:1adc6718cc05 | 21:c0301992025a |
---|---|
8 | 8 |
9 use warnings; | 9 use warnings; |
10 use strict; | 10 use strict; |
11 | 11 |
12 use Test::More; | 12 use Test::More; |
13 | |
14 BEGIN { use FindBin; chdir($FindBin::Bin); } | |
15 | |
16 use lib 'lib'; | |
17 use Test::Nginx qw/ :DEFAULT :gzip /; | 13 use Test::Nginx qw/ :DEFAULT :gzip /; |
18 | 14 |
19 ############################################################################### | 15 ############################################################################### |
20 | 16 |
21 select STDERR; $| = 1; | 17 select STDERR; $| = 1; |
25 plan(skip_all => 'Cache::Memcached not installed') if $@; | 21 plan(skip_all => 'Cache::Memcached not installed') if $@; |
26 | 22 |
27 eval { require IO::Compress::Gzip; }; | 23 eval { require IO::Compress::Gzip; }; |
28 plan(skip_all => "IO::Compress::Gzip not found") if $@; | 24 plan(skip_all => "IO::Compress::Gzip not found") if $@; |
29 | 25 |
30 my $t = Test::Nginx->new()->has(qw/http memcached/)->has_daemon('memcached') | 26 my $t = Test::Nginx->new()->has(qw/http gunzip memcached/) |
27 ->has_daemon('memcached') | |
31 ->write_file_expand('nginx.conf', <<'EOF'); | 28 ->write_file_expand('nginx.conf', <<'EOF'); |
32 | 29 |
33 %%TEST_GLOBALS%% | 30 %%TEST_GLOBALS%% |
34 | 31 |
35 master_process off; | |
36 daemon off; | 32 daemon off; |
37 | 33 |
38 events { | 34 events { |
39 } | 35 } |
40 | 36 |