Mercurial > hg > nginx-tests
comparison ssl_curve.t @ 1860:58951cf933e1
Tests: added has_feature() test for SSL libraries.
This makes it possible to further simplify various SSL tests. It also
avoids direct testing of the $t->{_configure_args} internal field, and
implements proper comparison of version numbers.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 18 May 2023 18:07:06 +0300 |
parents | cdcd75657e52 |
children | a797d7428fa5 |
comparison
equal
deleted
inserted
replaced
1859:5f46af4707e7 | 1860:58951cf933e1 |
---|---|
20 ############################################################################### | 20 ############################################################################### |
21 | 21 |
22 select STDERR; $| = 1; | 22 select STDERR; $| = 1; |
23 select STDOUT; $| = 1; | 23 select STDOUT; $| = 1; |
24 | 24 |
25 my $t = Test::Nginx->new()->has(qw/http http_ssl rewrite socket_ssl/) | 25 my $t = Test::Nginx->new() |
26 ->has(qw/http http_ssl rewrite socket_ssl openssl:3.0.0/) | |
26 ->has_daemon('openssl'); | 27 ->has_daemon('openssl'); |
27 | |
28 $t->{_configure_args} =~ /OpenSSL (\d+)/; | |
29 plan(skip_all => 'OpenSSL too old') unless defined $1 and $1 >= 3; | |
30 | 28 |
31 $t->write_file_expand('nginx.conf', <<'EOF'); | 29 $t->write_file_expand('nginx.conf', <<'EOF'); |
32 | 30 |
33 %%TEST_GLOBALS%% | 31 %%TEST_GLOBALS%% |
34 | 32 |