Mercurial > hg > nginx-tests
changeset 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 | 0d8531f744bc |
children | 5ac6efbe5552 |
files | mail_ssl_conf_command.t proxy_ssl_conf_command.t ssl_conf_command.t stream_proxy_ssl_conf_command.t stream_ssl_conf_command.t |
diffstat | 5 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mail_ssl_conf_command.t Thu May 27 13:07:46 2021 +0300 +++ b/mail_ssl_conf_command.t Tue Jun 01 16:40:15 2021 +0300 @@ -33,6 +33,9 @@ my $t = Test::Nginx->new()->has(qw/mail mail_ssl imap/) ->has_daemon('openssl'); +$t->{_configure_args} =~ /OpenSSL ([\d\.]+)/; +plan(skip_all => 'OpenSSL too old') unless defined $1 and $1 ge '1.0.2'; + $t->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%%
--- a/proxy_ssl_conf_command.t Thu May 27 13:07:46 2021 +0300 +++ b/proxy_ssl_conf_command.t Tue Jun 01 16:40:15 2021 +0300 @@ -25,6 +25,9 @@ my $t = Test::Nginx->new()->has(qw/http http_ssl proxy/) ->has_daemon('openssl'); +$t->{_configure_args} =~ /OpenSSL ([\d\.]+)/; +plan(skip_all => 'OpenSSL too old') unless defined $1 and $1 ge '1.0.2'; + $t->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%%
--- a/ssl_conf_command.t Thu May 27 13:07:46 2021 +0300 +++ b/ssl_conf_command.t Tue Jun 01 16:40:15 2021 +0300 @@ -33,6 +33,9 @@ my $t = Test::Nginx->new()->has(qw/http http_ssl/) ->has_daemon('openssl'); +$t->{_configure_args} =~ /OpenSSL ([\d\.]+)/; +plan(skip_all => 'OpenSSL too old') unless defined $1 and $1 ge '1.0.2'; + $t->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%%
--- a/stream_proxy_ssl_conf_command.t Thu May 27 13:07:46 2021 +0300 +++ b/stream_proxy_ssl_conf_command.t Tue Jun 01 16:40:15 2021 +0300 @@ -26,6 +26,9 @@ my $t = Test::Nginx->new()->has(qw/stream stream_ssl stream_return/) ->has_daemon('openssl'); +$t->{_configure_args} =~ /OpenSSL ([\d\.]+)/; +plan(skip_all => 'OpenSSL too old') unless defined $1 and $1 ge '1.0.2'; + $t->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%%
--- a/stream_ssl_conf_command.t Thu May 27 13:07:46 2021 +0300 +++ b/stream_ssl_conf_command.t Tue Jun 01 16:40:15 2021 +0300 @@ -33,6 +33,9 @@ my $t = Test::Nginx->new()->has(qw/stream stream_ssl stream_return/) ->has_daemon('openssl'); +$t->{_configure_args} =~ /OpenSSL ([\d\.]+)/; +plan(skip_all => 'OpenSSL too old') unless defined $1 and $1 ge '1.0.2'; + $t->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%%