Mercurial > hg > nginx-tests
comparison proxy.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 | 1c0ec30614c6 |
children | c0ae29632905 |
comparison
equal
deleted
inserted
replaced
120:598b758c68a9 | 121:8ac1faaddd2c |
---|---|
7 ############################################################################### | 7 ############################################################################### |
8 | 8 |
9 use warnings; | 9 use warnings; |
10 use strict; | 10 use strict; |
11 | 11 |
12 use Test::More tests => 3; | 12 use Test::More; |
13 | 13 |
14 BEGIN { use FindBin; chdir($FindBin::Bin); } | 14 BEGIN { use FindBin; chdir($FindBin::Bin); } |
15 | 15 |
16 use lib 'lib'; | 16 use lib 'lib'; |
17 use Test::Nginx; | 17 use Test::Nginx; |
19 ############################################################################### | 19 ############################################################################### |
20 | 20 |
21 select STDERR; $| = 1; | 21 select STDERR; $| = 1; |
22 select STDOUT; $| = 1; | 22 select STDOUT; $| = 1; |
23 | 23 |
24 my $t = Test::Nginx->new(); | 24 my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(3); |
25 | 25 |
26 $t->write_file_expand('nginx.conf', <<'EOF'); | 26 $t->write_file_expand('nginx.conf', <<'EOF'); |
27 | 27 |
28 %%TEST_GLOBALS%% | 28 %%TEST_GLOBALS%% |
29 | 29 |