# HG changeset patch # User Sergey Kandaurov # Date 1622554815 -10800 # Node ID f6795e2e6a4bcec1146a952f10cfc2b35f956e5a # Parent 0d8531f744bce8432d2b4fb07ba5df6fe9e385b6 Tests: skip ssl_conf_command tests on too old OpenSSL explicitly. diff --git a/mail_ssl_conf_command.t b/mail_ssl_conf_command.t --- a/mail_ssl_conf_command.t +++ b/mail_ssl_conf_command.t @@ -33,6 +33,9 @@ plan(skip_all => 'Net::SSLeay not instal 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%% diff --git a/proxy_ssl_conf_command.t b/proxy_ssl_conf_command.t --- a/proxy_ssl_conf_command.t +++ b/proxy_ssl_conf_command.t @@ -25,6 +25,9 @@ select STDOUT; $| = 1; 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%% diff --git a/ssl_conf_command.t b/ssl_conf_command.t --- a/ssl_conf_command.t +++ b/ssl_conf_command.t @@ -33,6 +33,9 @@ plan(skip_all => 'Net::SSLeay not instal 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%% diff --git a/stream_proxy_ssl_conf_command.t b/stream_proxy_ssl_conf_command.t --- a/stream_proxy_ssl_conf_command.t +++ b/stream_proxy_ssl_conf_command.t @@ -26,6 +26,9 @@ select STDOUT; $| = 1; 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%% diff --git a/stream_ssl_conf_command.t b/stream_ssl_conf_command.t --- a/stream_ssl_conf_command.t +++ b/stream_ssl_conf_command.t @@ -33,6 +33,9 @@ plan(skip_all => 'Net::SSLeay not instal 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%%