Mercurial > hg > nginx-tests
diff smtp-greeting-delay.t @ 27:fb94a224fef2
Tests: add has() functions for feature testing.
Currently it just skips all tests if feature not found in nginx -V output.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 10 Oct 2008 20:09:14 +0400 |
parents | 0880e0fafde4 |
children | 8f1519472ece |
line wrap: on
line diff
--- a/smtp-greeting-delay.t Thu Oct 02 16:18:11 2008 +0400 +++ b/smtp-greeting-delay.t Fri Oct 10 20:09:14 2008 +0400 @@ -7,7 +7,7 @@ use warnings; use strict; -use Test::More tests => 2; +use Test::More; use MIME::Base64; use Socket qw/ CRLF /; @@ -23,7 +23,8 @@ select STDERR; $| = 1; select STDOUT; $| = 1; -my $t = Test::Nginx->new()->write_file_expand('nginx.conf', <<'EOF')->run(); +my $t = Test::Nginx->new()->has('mail', plan => 2) + ->write_file_expand('nginx.conf', <<'EOF')->run(); master_process off; daemon off;