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/10-test_exp.t | |
parent | d11b43fdd30f084c19136359d0e3e4a06631abf9 (diff) | |
download | openssl-93de4f58ef8be2cb764343cb3102d41c81f11593.zip openssl-93de4f58ef8be2cb764343cb3102d41c81f11593.tar.gz openssl-93de4f58ef8be2cb764343cb3102d41c81f11593.tar.bz2 |
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/10-test_exp.t')
-rw-r--r-- | test/recipes/10-test_exp.t | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/recipes/10-test_exp.t b/test/recipes/10-test_exp.t index e7bad93..b8083e7 100644 --- a/test/recipes/10-test_exp.t +++ b/test/recipes/10-test_exp.t @@ -1,12 +1,5 @@ #! /usr/bin/perl -use strict; -use warnings; +use OpenSSL::Test::Simple; -use Test::More; -use OpenSSL::Test; - -setup("test_exp"); - -plan tests => 1; -ok(run(test(["exptest"])), "running exptest"); +simple_test("test_exp", "exptest"); |