Skip to content

Commit

Permalink
fixup! This is a test for nocache provider behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
beldmit committed Dec 17, 2024
1 parent 72fdd18 commit 679a0d7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/recipes/20-test_nocache.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ use OpenSSL::Test::Utils;

setup("test_nocache");

plan tests => 2;
plan tests => 4;

ok(run(app(["openssl", "list", "-mac-algorithms"],
stdout => "listout.txt")),
"List mac algorithms - default configuration");
open DATA, "listout.txt";
my @match = grep /MAC/, <DATA>;
close DATA;
ok(scalar @match > 1 ? 1 : 0, "Several aggorithms are listed - default configuration");

$ENV{OPENSSL_CONF} = bldtop_file("test", "null-and-default.cnf");
ok(run(app(["openssl", "list", "-mac-algorithms"],
Expand All @@ -23,4 +31,4 @@ ok(run(app(["openssl", "list", "-mac-algorithms"],
open DATA, "listout.txt";
my @match = grep /MAC/, <DATA>;
close DATA;
ok(scalar @match > 1 ? 1 : 0, "Several aggorithms are listed");
ok(scalar @match > 1 ? 1 : 0, "Several aggorithms are listed - null-and-default");

0 comments on commit 679a0d7

Please sign in to comment.