changeset 1696:4baeba0e0da2

Tests: skip ssl_conf_command tests with BoringSSL. BoringSSL pretends to be OpenSSL 1.1.1, this confuses existing skip_all checks.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 01 Jun 2021 23:46:32 +0300
parents 00c08f068f79
children 5386f4328b90
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, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mail_ssl_conf_command.t
+++ b/mail_ssl_conf_command.t
@@ -35,6 +35,7 @@ my $t = Test::Nginx->new()->has(qw/mail 
 
 $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');
 
--- a/proxy_ssl_conf_command.t
+++ b/proxy_ssl_conf_command.t
@@ -27,6 +27,7 @@ my $t = Test::Nginx->new()->has(qw/http 
 
 $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');
 
--- a/ssl_conf_command.t
+++ b/ssl_conf_command.t
@@ -35,6 +35,7 @@ my $t = Test::Nginx->new()->has(qw/http 
 
 $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');
 
--- a/stream_proxy_ssl_conf_command.t
+++ b/stream_proxy_ssl_conf_command.t
@@ -28,6 +28,7 @@ my $t = Test::Nginx->new()->has(qw/strea
 
 $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');
 
--- a/stream_ssl_conf_command.t
+++ b/stream_ssl_conf_command.t
@@ -35,6 +35,7 @@ my $t = Test::Nginx->new()->has(qw/strea
 
 $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');