# HG changeset patch # User Maxim Dounin # Date 1261874428 -10800 # Node ID 7170c171150c002924c87dedb5d88818df49d58c # Parent 5fc44c8ba213e9feea9edd44091b052f6836a06b Gunzip: better test dependencies. diff --git a/t/gunzip-perl.t b/t/gunzip-perl.t --- a/t/gunzip-perl.t +++ b/t/gunzip-perl.t @@ -24,7 +24,7 @@ select STDOUT; $| = 1; eval { require IO::Compress::Gzip; }; Test::More::plan(skip_all => "IO::Compress::Gzip not found") if $@; -my $t = Test::Nginx->new()->has('perl')->plan(2) +my $t = Test::Nginx->new()->has(qw/http perl/)->plan(2) ->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% diff --git a/t/gunzip-ssi.t b/t/gunzip-ssi.t --- a/t/gunzip-ssi.t +++ b/t/gunzip-ssi.t @@ -20,7 +20,7 @@ select STDOUT; $| = 1; eval { require IO::Compress::Gzip; }; Test::More::plan(skip_all => "IO::Compress::Gzip not found") if $@; -my $t = Test::Nginx->new()->has('--with-http_gzip_static_module')->plan(4); +my $t = Test::Nginx->new()->has(qw/http ssi proxy gzip_static/)->plan(4); $t->write_file_expand('nginx.conf', <<'EOF'); diff --git a/t/gunzip.t b/t/gunzip.t --- a/t/gunzip.t +++ b/t/gunzip.t @@ -20,7 +20,7 @@ select STDOUT; $| = 1; eval { require IO::Compress::Gzip; }; Test::More::plan(skip_all => "IO::Compress::Gzip not found") if $@; -my $t = Test::Nginx->new()->has('--with-http_gzip_static_module')->plan(12); +my $t = Test::Nginx->new()->has(qw/http proxy gzip_static/)->plan(12); $t->write_file_expand('nginx.conf', <<'EOF');