diff --git a/test/recipes/20-test_nocache.t b/test/recipes/20-test_nocache.t index 4ce6daccb986ad..1d129a7d6dbcf9 100644 --- a/test/recipes/20-test_nocache.t +++ b/test/recipes/20-test_nocache.t @@ -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/, ; +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"], @@ -23,4 +31,4 @@ ok(run(app(["openssl", "list", "-mac-algorithms"], open DATA, "listout.txt"; my @match = grep /MAC/, ; 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");