comparison ssl_verify_client.t @ 1032:43eedbfea090

Tests: add missing sni prerequisites.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 14 Sep 2016 19:55:29 +0300
parents 882267679006
children efccab043dd3
comparison
equal deleted inserted replaced
1031:be45fa007655 1032:43eedbfea090
25 eval { require IO::Socket::SSL; }; 25 eval { require IO::Socket::SSL; };
26 plan(skip_all => 'IO::Socket::SSL not installed') if $@; 26 plan(skip_all => 'IO::Socket::SSL not installed') if $@;
27 eval { IO::Socket::SSL->can_client_sni() or die; }; 27 eval { IO::Socket::SSL->can_client_sni() or die; };
28 plan(skip_all => 'IO::Socket::SSL with OpenSSL SNI support required') if $@; 28 plan(skip_all => 'IO::Socket::SSL with OpenSSL SNI support required') if $@;
29 29
30 my $t = Test::Nginx->new()->has(qw/http http_ssl/) 30 my $t = Test::Nginx->new()->has(qw/http http_ssl sni/)
31 ->has_daemon('openssl')->plan(3); 31 ->has_daemon('openssl')->plan(3);
32 32
33 $t->write_file_expand('nginx.conf', <<'EOF'); 33 $t->write_file_expand('nginx.conf', <<'EOF');
34 34
35 %%TEST_GLOBALS%% 35 %%TEST_GLOBALS%%