comparison t/gunzip.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 b12d2ee20755
children
comparison
equal deleted inserted replaced
20:1adc6718cc05 21:c0301992025a
18 select STDOUT; $| = 1; 18 select STDOUT; $| = 1;
19 19
20 eval { require IO::Compress::Gzip; }; 20 eval { require IO::Compress::Gzip; };
21 Test::More::plan(skip_all => "IO::Compress::Gzip not found") if $@; 21 Test::More::plan(skip_all => "IO::Compress::Gzip not found") if $@;
22 22
23 my $t = Test::Nginx->new()->has(qw/http proxy gzip_static/)->plan(13); 23 my $t = Test::Nginx->new()->has(qw/http gunzip proxy gzip_static/)->plan(13);
24 24
25 $t->write_file_expand('nginx.conf', <<'EOF'); 25 $t->write_file_expand('nginx.conf', <<'EOF');
26 26
27 master_process off; 27 %%TEST_GLOBALS%%
28
28 daemon off; 29 daemon off;
29 30
30 events { 31 events {
31 } 32 }
32 33
33 http { 34 http {
34 access_log off; 35 %%TEST_GLOBALS_HTTP%%
35 root %%TESTDIR%%;
36
37 client_body_temp_path %%TESTDIR%%/client_body_temp;
38 fastcgi_temp_path %%TESTDIR%%/fastcgi_temp;
39 proxy_temp_path %%TESTDIR%%/proxy_temp;
40 36
41 server { 37 server {
42 listen 127.0.0.1:8080; 38 listen 127.0.0.1:8080;
43 server_name localhost; 39 server_name localhost;
44 location / { 40 location / {