Skip to content

Commit db8022d

Browse files
authored
tests: improve openssl version check in test cases.
1 parent 86cf76e commit db8022d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

t/139-ssl-cert-by.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ my $NginxBinary = $ENV{'TEST_NGINX_BINARY'} || 'nginx';
88
my $openssl_version = eval { `$NginxBinary -V 2>&1` };
99

1010
if ($openssl_version =~ m/built with OpenSSL (0|1\.0\.(?:0|1[^\d]|2[a-d]).*)/) {
11-
plan(skip_all => "too old OpenSSL, need 1.0.2e, was $1");
11+
plan(skip_all => "too old OpenSSL, need >= 1.0.2e, was $1");
1212
} else {
1313
plan tests => repeat_each() * (blocks() * 6 + 5);
1414
}

t/140-ssl-c-api.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ my $NginxBinary = $ENV{'TEST_NGINX_BINARY'} || 'nginx';
88
my $openssl_version = eval { `$NginxBinary -V 2>&1` };
99

1010
if ($openssl_version =~ m/built with OpenSSL (0|1\.0\.(?:0|1[^\d]|2[a-d]).*)/) {
11-
plan(skip_all => "too old OpenSSL, need 1.0.2e, was $1");
11+
plan(skip_all => "too old OpenSSL, need >= 1.0.2e, was $1");
1212
} else {
1313
plan tests => repeat_each() * (blocks() * 5 - 1);
1414
}

t/162-ssl-client-hello-by.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ my $NginxBinary = $ENV{'TEST_NGINX_BINARY'} || 'nginx';
88
my $openssl_version = eval { `$NginxBinary -V 2>&1` };
99

1010
if ($openssl_version =~ m/built with OpenSSL (0\S*|1\.0\S*|1\.1\.0\S*)/) {
11-
plan(skip_all => "too old OpenSSL, need 1.1.1, was $1");
11+
plan(skip_all => "too old OpenSSL, need >= 1.1.1, was $1");
1212
} else {
1313
plan tests => repeat_each() * (blocks() * 6 + 5);
1414
}

t/163-ssl-two-verification.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ my $NginxBinary = $ENV{'TEST_NGINX_BINARY'} || 'nginx';
99
my $openssl_version = eval { `$NginxBinary -V 2>&1` };
1010

1111
if ($openssl_version =~ m/built with OpenSSL (0\S*|1\.0\S*|1\.1\.0\S*)/) {
12-
plan(skip_all => "too old OpenSSL, need 1.1.1, was $1");
12+
plan(skip_all => "too old OpenSSL, need >= 1.1.1, was $1");
1313
} else {
1414
plan tests => repeat_each() * (blocks() * 7);
1515
}

0 commit comments

Comments
 (0)