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 index 5948feb..f505e44 100644 --- a/mail_ssl_conf_command.t +++ b/mail_ssl_conf_command.t
@@ -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%%
diff --git a/proxy_ssl_conf_command.t b/proxy_ssl_conf_command.t index 5596294..3d0ba70 100644 --- a/proxy_ssl_conf_command.t +++ b/proxy_ssl_conf_command.t
@@ -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%%
diff --git a/ssl_conf_command.t b/ssl_conf_command.t index a90c869..c863407 100644 --- a/ssl_conf_command.t +++ b/ssl_conf_command.t
@@ -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%%
diff --git a/stream_proxy_ssl_conf_command.t b/stream_proxy_ssl_conf_command.t index db7aaad..ea56457 100644 --- a/stream_proxy_ssl_conf_command.t +++ b/stream_proxy_ssl_conf_command.t
@@ -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%%
diff --git a/stream_ssl_conf_command.t b/stream_ssl_conf_command.t index a1bf492..33fa457 100644 --- a/stream_ssl_conf_command.t +++ b/stream_ssl_conf_command.t
@@ -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%%