Mercurial > hg > nginx-tests
diff proxy_ssl_conf_command.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 | 5386f4328b90 |
children | 236d038dc04a |
line wrap: on
line diff
--- a/proxy_ssl_conf_command.t +++ b/proxy_ssl_conf_command.t @@ -22,11 +22,10 @@ use Test::Nginx; select STDERR; $| = 1; select STDOUT; $| = 1; -my $t = Test::Nginx->new()->has(qw/http http_ssl proxy uwsgi http_v2 grpc/) +my $t = Test::Nginx->new() + ->has(qw/http http_ssl proxy uwsgi http_v2 grpc openssl:1.0.2/) ->has_daemon('openssl'); -$t->{_configure_args} =~ /OpenSSL ([\d\.]+)/; -plan(skip_all => 'OpenSSL too old') unless defined $1 and $1 ge '1.0.2'; plan(skip_all => 'no ssl_conf_command') if $t->has_module('BoringSSL'); $t->write_file_expand('nginx.conf', <<'EOF');