diff options
author | Richard Levitte <levitte@openssl.org> | 2015-04-21 19:29:01 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-09-07 16:10:58 +0200 |
commit | 93de4f58ef8be2cb764343cb3102d41c81f11593 (patch) | |
tree | 24240fe186ce101496f758d80e22a7bb03879129 /test/recipes/05-test_bf.t | |
parent | d11b43fdd30f084c19136359d0e3e4a06631abf9 (diff) |
Simplify very simple test recipes further.
Very simple test recipes easily become tedious, so they might benefit
from being made as simple as possible. Therefore, OpenSSL::Test::Simple
is born. It currently provides but one function, simple_test(), which
takes a minimum of two parameters (test name and program to run), with
the optional third, being the algorithm to be checked for before
running the test itself.
All recipes with that simple thing to do have been rewritten to be as
minimal as possible.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/recipes/05-test_bf.t')
-rw-r--r-- | test/recipes/05-test_bf.t | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/recipes/05-test_bf.t b/test/recipes/05-test_bf.t index 70e0d28bf1..4794bf0d84 100644 --- a/test/recipes/05-test_bf.t +++ b/test/recipes/05-test_bf.t @@ -1,12 +1,5 @@ #! /usr/bin/perl -use strict; -use warnings; +use OpenSSL::Test::Simple; -use Test::More; -use OpenSSL::Test; - -setup("test_bf"); - -plan tests => 1; -ok(run(test(["bftest"])), "running bftest"); +simple_test("test_bf", "bftest", "bf"); |