Skip to content

Commit d6e5e42

Browse files
committed
tests: ci fix
1 parent 987ce64 commit d6e5e42

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

t/169-proxy-ssl-verify.t

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ repeat_each(3);
88
my $NginxBinary = $ENV{'TEST_NGINX_BINARY'} || 'nginx';
99
my $openssl_version = eval { `$NginxBinary -V 2>&1` };
1010

11-
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");
11+
if ($openssl_version =~ m/built with OpenSSL (\d+)\.(\d+)\.(\d+)/) {
12+
my ($major, $minor, $patch) = ($1, $2, $3);
13+
14+
if ($major < 3 || ($major == 3 && $minor == 0 && $patch < 2)) {
15+
plan(skip_all => "too old OpenSSL, need >= 3.0.2, was " .
16+
"$major.$minor.$patch");
17+
}
1318
} elsif ($openssl_version =~ m/running with BoringSSL/) {
1419
plan(skip_all => "does not support BoringSSL");
1520
} elsif ($ENV{TEST_NGINX_USE_HTTP3}) {

0 commit comments

Comments
 (0)