Mercurial > hg > nginx-tests
comparison h3_server_name.t @ 1894:cd66d6f50ec1
Tests: converted h3_server_name.t to use "socket_ssl_alpn".
See cdcd75657e52 for further details.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 24 May 2023 19:10:58 +0400 |
parents | 3619dcc8ba6d |
children | acd68670b064 |
comparison
equal
deleted
inserted
replaced
1893:6dcf5a1df790 | 1894:cd66d6f50ec1 |
---|---|
22 ############################################################################### | 22 ############################################################################### |
23 | 23 |
24 select STDERR; $| = 1; | 24 select STDERR; $| = 1; |
25 select STDOUT; $| = 1; | 25 select STDOUT; $| = 1; |
26 | 26 |
27 eval { require IO::Socket::SSL; die if $IO::Socket::SSL::VERSION < 1.56; }; | |
28 plan(skip_all => 'IO::Socket::SSL version >= 1.56 required') if $@; | |
29 | |
30 eval { IO::Socket::SSL->can_client_sni() or die; }; | |
31 plan(skip_all => 'IO::Socket::SSL with OpenSSL SNI support required') if $@; | |
32 | |
33 eval { IO::Socket::SSL->can_alpn() or die; }; | |
34 plan(skip_all => 'IO::Socket::SSL with OpenSSL ALPN support required') if $@; | |
35 | |
36 eval { require Crypt::Misc; die if $Crypt::Misc::VERSION < 0.067; }; | 27 eval { require Crypt::Misc; die if $Crypt::Misc::VERSION < 0.067; }; |
37 plan(skip_all => 'CryptX version >= 0.067 required') if $@; | 28 plan(skip_all => 'CryptX version >= 0.067 required') if $@; |
38 | 29 |
39 my $t = Test::Nginx->new()->has(qw/http http_ssl http_v2 http_v3 rewrite/) | 30 my $t = Test::Nginx->new() |
31 ->has(qw/http http_ssl http_v2 http_v3 rewrite socket_ssl_alpn/) | |
40 ->has_daemon('openssl')->plan(6); | 32 ->has_daemon('openssl')->plan(6); |
41 | 33 |
42 $t->write_file_expand('nginx.conf', <<'EOF'); | 34 $t->write_file_expand('nginx.conf', <<'EOF'); |
43 | 35 |
44 %%TEST_GLOBALS%% | 36 %%TEST_GLOBALS%% |