Mercurial > hg > nginx-tests
comparison proxy-noclose.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 | 5d31f920eda9 |
children |
comparison
equal
deleted
inserted
replaced
120:598b758c68a9 | 121:8ac1faaddd2c |
---|---|
16 ############################################################################### | 16 ############################################################################### |
17 | 17 |
18 use warnings; | 18 use warnings; |
19 use strict; | 19 use strict; |
20 | 20 |
21 use Test::More tests => 4; | 21 use Test::More; |
22 | 22 |
23 use IO::Select; | 23 use IO::Select; |
24 | 24 |
25 BEGIN { use FindBin; chdir($FindBin::Bin); } | 25 BEGIN { use FindBin; chdir($FindBin::Bin); } |
26 | 26 |
30 ############################################################################### | 30 ############################################################################### |
31 | 31 |
32 select STDERR; $| = 1; | 32 select STDERR; $| = 1; |
33 select STDOUT; $| = 1; | 33 select STDOUT; $| = 1; |
34 | 34 |
35 my $t = Test::Nginx->new(); | 35 my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(4); |
36 | 36 |
37 $t->write_file_expand('nginx.conf', <<'EOF'); | 37 $t->write_file_expand('nginx.conf', <<'EOF'); |
38 | 38 |
39 %%TEST_GLOBALS%% | 39 %%TEST_GLOBALS%% |
40 | 40 |