Mercurial > hg > nginx-tests
comparison h3_server_name.t @ 1896:8b74936ff2ac
Tests: added has_feature() test for CryptX.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 29 May 2023 17:04:36 +0400 |
parents | acd68670b064 |
children | 236d038dc04a |
comparison
equal
deleted
inserted
replaced
1895:acd68670b064 | 1896:8b74936ff2ac |
---|---|
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 Crypt::Misc; die if $Crypt::Misc::VERSION < 0.067; }; | |
28 plan(skip_all => 'CryptX version >= 0.067 required') if $@; | |
29 | |
30 my $t = Test::Nginx->new() | 27 my $t = Test::Nginx->new() |
31 ->has(qw/http http_ssl http_v2 http_v3 rewrite socket_ssl_alpn/) | 28 ->has(qw/http http_ssl http_v2 http_v3 rewrite socket_ssl_alpn cryptx/) |
32 ->has_daemon('openssl')->plan(6); | 29 ->has_daemon('openssl')->plan(6); |
33 | 30 |
34 $t->write_file_expand('nginx.conf', <<'EOF'); | 31 $t->write_file_expand('nginx.conf', <<'EOF'); |
35 | 32 |
36 %%TEST_GLOBALS%% | 33 %%TEST_GLOBALS%% |