Mercurial > hg > nginx-tests
comparison smtp.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 |
comparison
equal
deleted
inserted
replaced
120:598b758c68a9 | 121:8ac1faaddd2c |
---|---|
26 select STDOUT; $| = 1; | 26 select STDOUT; $| = 1; |
27 | 27 |
28 local $SIG{PIPE} = 'IGNORE'; | 28 local $SIG{PIPE} = 'IGNORE'; |
29 | 29 |
30 my $t = Test::Nginx->new() | 30 my $t = Test::Nginx->new() |
31 ->has('mail')->plan(25) | 31 ->has(qw/mail smtp http rewrite/)->plan(25) |
32 ->run_daemon(\&Test::Nginx::SMTP::smtp_test_daemon) | 32 ->run_daemon(\&Test::Nginx::SMTP::smtp_test_daemon) |
33 ->write_file_expand('nginx.conf', <<'EOF')->run(); | 33 ->write_file_expand('nginx.conf', <<'EOF')->run(); |
34 | 34 |
35 %%TEST_GLOBALS%% | 35 %%TEST_GLOBALS%% |
36 | 36 |