Mercurial > hg > ngx_http_gunzip_filter_module
comparison t/gunzip_ssi.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 |
---|---|
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 ssi proxy gzip_static/)->plan(4); | 23 my $t = Test::Nginx->new()->has(qw/http gunzip ssi proxy gzip_static/) |
24 ->plan(4); | |
24 | 25 |
25 $t->write_file_expand('nginx.conf', <<'EOF'); | 26 $t->write_file_expand('nginx.conf', <<'EOF'); |
26 | 27 |
27 master_process off; | 28 %%TEST_GLOBALS%% |
29 | |
28 daemon off; | 30 daemon off; |
29 | 31 |
30 events { | 32 events { |
31 } | 33 } |
32 | 34 |
33 http { | 35 http { |
34 access_log off; | 36 %%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 | 37 |
41 server { | 38 server { |
42 listen 127.0.0.1:8080; | 39 listen 127.0.0.1:8080; |
43 server_name localhost; | 40 server_name localhost; |
44 | 41 |