Skip to content

Commit

Permalink
Adds some version guards for dummy proxy.
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #23319)
  • Loading branch information
fwh-dc authored and mattcaswell committed Feb 9, 2024
1 parent fe3029a commit eb62ca5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/recipes/70-test_sslrecords.t
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ plan skip_all => "$test_name needs the dynamic engine feature enabled"
plan skip_all => "$test_name needs the sock feature enabled"
if disabled("sock");

plan skip_all => "$test_name needs TLS1.2 or TLS1.3 for running dummyproxy check"
if disabled("tls1_3") && disabled("tls1_2");

my $testplanisset = 0;
my $inject_recs_num = undef;
my $content_type = undef;
Expand All @@ -46,9 +49,10 @@ my $dummyproxy = TLSProxy::Proxy->new(
# Avoid failures with tls1_3 disabled builds
# TLSProxy defaults to use tls1_3 and tls1_2 is required by the tests so
# set it here and check that a simple proxy works before running the tests
$dummyproxy->serverflags("-tls1_2");
$dummyproxy->clientflags("-no_tls1_3");

if (disabled("tls1_3")) {
$dummyproxy->serverflags("-tls1_2");
$dummyproxy->clientflags("-no_tls1_3");
}
$dummyproxy->start() or plan skip_all => "Unable to start up Proxy for tests";
plan tests => 42;

Expand Down

0 comments on commit eb62ca5

Please sign in to comment.