Mercurial > hg > ngx_http_gunzip_filter_module
comparison t/gunzip-perl.t @ 3:7170c171150c
Gunzip: better test dependencies.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sun, 27 Dec 2009 03:40:28 +0300 |
parents | 5fc44c8ba213 |
children | 9d299b9f877b |
comparison
equal
deleted
inserted
replaced
2:5fc44c8ba213 | 3:7170c171150c |
---|---|
22 select STDOUT; $| = 1; | 22 select STDOUT; $| = 1; |
23 | 23 |
24 eval { require IO::Compress::Gzip; }; | 24 eval { require IO::Compress::Gzip; }; |
25 Test::More::plan(skip_all => "IO::Compress::Gzip not found") if $@; | 25 Test::More::plan(skip_all => "IO::Compress::Gzip not found") if $@; |
26 | 26 |
27 my $t = Test::Nginx->new()->has('perl')->plan(2) | 27 my $t = Test::Nginx->new()->has(qw/http perl/)->plan(2) |
28 ->write_file_expand('nginx.conf', <<'EOF'); | 28 ->write_file_expand('nginx.conf', <<'EOF'); |
29 | 29 |
30 %%TEST_GLOBALS%% | 30 %%TEST_GLOBALS%% |
31 | 31 |
32 master_process off; | 32 master_process off; |