Mercurial > hg > nginx-tests
comparison mail_ssl_conf_command.t @ 1692:f6795e2e6a4b
Tests: skip ssl_conf_command tests on too old OpenSSL explicitly.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 01 Jun 2021 16:40:15 +0300 |
parents | 8d2d37a4b48e |
children | 5ac6efbe5552 |
comparison
equal
deleted
inserted
replaced
1691:0d8531f744bc | 1692:f6795e2e6a4b |
---|---|
30 }; | 30 }; |
31 plan(skip_all => 'Net::SSLeay not installed') if $@; | 31 plan(skip_all => 'Net::SSLeay not installed') if $@; |
32 | 32 |
33 my $t = Test::Nginx->new()->has(qw/mail mail_ssl imap/) | 33 my $t = Test::Nginx->new()->has(qw/mail mail_ssl imap/) |
34 ->has_daemon('openssl'); | 34 ->has_daemon('openssl'); |
35 | |
36 $t->{_configure_args} =~ /OpenSSL ([\d\.]+)/; | |
37 plan(skip_all => 'OpenSSL too old') unless defined $1 and $1 ge '1.0.2'; | |
35 | 38 |
36 $t->write_file_expand('nginx.conf', <<'EOF'); | 39 $t->write_file_expand('nginx.conf', <<'EOF'); |
37 | 40 |
38 %%TEST_GLOBALS%% | 41 %%TEST_GLOBALS%% |
39 | 42 |