Skip to content

Commit

Permalink
Skip regression tests that require older OpenSSL versions, i.e. 1.x o…
Browse files Browse the repository at this point in the history
…r earlier. The Linux container we're now using uses OpenSSL 3.x.
  • Loading branch information
Castaglia committed Dec 11, 2024
1 parent c726487 commit a294b86
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion t/lib/ProFTPD/Tests/Modules/mod_proxy/ssh.pm
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,28 @@ sub list_tests {
}
}

return testsuite_get_runnable_tests($TESTS);
my @tests = testsuite_get_runnable_tests($TESTS);

# These tests need to be skipped due to lack of support when using newer
# OpenSSL versions, i.e. 3.x or later.
my $skipped_tests = {
proxy_reverse_backend_ssh_cipher_3des_ctr => 1,
proxy_reverse_backend_ssh_cipher_arcfour128 => 1,
proxy_reverse_backend_ssh_cipher_arcfour256 => 1,
proxy_reverse_backend_ssh_cipher_blowfish_ctr => 1,
};

foreach my $key (keys(%$skipped_tests)) {
my $ntests = scalar(@tests);
for (my $i = 0; $i < $ntests; $i++) {
if ($tests[$i] eq $key) {
splice(@$tests, $i, 1);
last;
}
}
}

return @tests;
}

sub set_up {
Expand Down

0 comments on commit a294b86

Please sign in to comment.