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