comparison perl-gzip.t @ 121:8ac1faaddd2c

Tests: better handle various configure arguments.
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 26 Dec 2009 16:06:17 +0300
parents 4bf7a819358c
children
comparison
equal deleted inserted replaced
120:598b758c68a9 121:8ac1faaddd2c
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')->has('gzip')->plan(2) 27 my $t = Test::Nginx->new()->has(qw/http perl gzip/)->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;