changeset 1744:38bd7e75fe69

Tests: skip ALPN rejection tests with OpenSSL < 1.1.0.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 25 Oct 2021 15:26:34 +0300
parents 2318ed01ce53
children 823f603da727
files h2_ssl.t mail_ssl.t stream_ssl_alpn.t
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h2_ssl.t	Thu Oct 21 20:18:01 2021 +0300
+++ b/h2_ssl.t	Mon Oct 25 15:26:34 2021 +0300
@@ -96,6 +96,8 @@
 SKIP: {
 $t->{_configure_args} =~ /LibreSSL ([\d\.]+)/;
 skip 'LibreSSL too old', 1 if defined $1 and $1 lt '3.4.0';
+$t->{_configure_args} =~ /OpenSSL ([\d\.]+)/;
+skip 'OpenSSL too old', 1 if defined $1 and $1 lt '1.1.0';
 
 TODO: {
 local $TODO = 'not yet' unless $t->has_version('1.21.4');
--- a/mail_ssl.t	Thu Oct 21 20:18:01 2021 +0300
+++ b/mail_ssl.t	Mon Oct 25 15:26:34 2021 +0300
@@ -220,6 +220,8 @@
 SKIP: {
 $t->{_configure_args} =~ /LibreSSL ([\d\.]+)/;
 skip 'LibreSSL too old', 1 if defined $1 and $1 lt '3.4.0';
+$t->{_configure_args} =~ /OpenSSL ([\d\.]+)/;
+skip 'OpenSSL too old', 1 if defined $1 and $1 lt '1.1.0';
 
 TODO: {
 local $TODO = 'not yet' unless $t->has_version('1.21.4');
--- a/stream_ssl_alpn.t	Thu Oct 21 20:18:01 2021 +0300
+++ b/stream_ssl_alpn.t	Mon Oct 25 15:26:34 2021 +0300
@@ -90,6 +90,8 @@
 SKIP: {
 $t->{_configure_args} =~ /LibreSSL ([\d\.]+)/;
 skip 'LibreSSL too old', 2 if defined $1 and $1 lt '3.4.0';
+$t->{_configure_args} =~ /OpenSSL ([\d\.]+)/;
+skip 'OpenSSL too old', 2 if defined $1 and $1 lt '1.1.0';
 
 ok(!get_ssl('wrong'), 'alpn mismatch');