Mercurial > hg > nginx-tests
comparison h3_absolute_redirect.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 | dc0bda44044c |
children |
comparison
equal
deleted
inserted
replaced
1895:acd68670b064 | 1896:8b74936ff2ac |
---|---|
21 ############################################################################### | 21 ############################################################################### |
22 | 22 |
23 select STDERR; $| = 1; | 23 select STDERR; $| = 1; |
24 select STDOUT; $| = 1; | 24 select STDOUT; $| = 1; |
25 | 25 |
26 eval { require Crypt::Misc; die if $Crypt::Misc::VERSION < 0.067; }; | 26 my $t = Test::Nginx->new()->has(qw/http http_v3 proxy rewrite cryptx/) |
27 plan(skip_all => 'CryptX version >= 0.067 required') if $@; | |
28 | |
29 my $t = Test::Nginx->new()->has(qw/http http_v3 proxy rewrite/) | |
30 ->has_daemon('openssl')->plan(23); | 27 ->has_daemon('openssl')->plan(23); |
31 | 28 |
32 $t->write_file_expand('nginx.conf', <<'EOF'); | 29 $t->write_file_expand('nginx.conf', <<'EOF'); |
33 | 30 |
34 %%TEST_GLOBALS%% | 31 %%TEST_GLOBALS%% |