aboutsummaryrefslogtreecommitdiffstats
path: root/test/recipes/05-test_hmac.t
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-04-21 19:29:01 +0200
committerRichard Levitte <levitte@openssl.org>2015-09-07 16:10:58 +0200
commit93de4f58ef8be2cb764343cb3102d41c81f11593 (patch)
tree24240fe186ce101496f758d80e22a7bb03879129 /test/recipes/05-test_hmac.t
parentd11b43fdd30f084c19136359d0e3e4a06631abf9 (diff)
downloadopenssl-93de4f58ef8be2cb764343cb3102d41c81f11593.tar.gz
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_hmac.t')
-rw-r--r--test/recipes/05-test_hmac.t11
1 files changed, 2 insertions, 9 deletions
diff --git a/test/recipes/05-test_hmac.t b/test/recipes/05-test_hmac.t
index 17fdf77aa8..469d43f14d 100644
--- a/test/recipes/05-test_hmac.t
+++ b/test/recipes/05-test_hmac.t
@@ -1,12 +1,5 @@
#! /usr/bin/perl
-use strict;
-use warnings;
+use OpenSSL::Test::Simple;
-use Test::More;
-use OpenSSL::Test;
-
-setup("test_hmac");
-
-plan tests => 1;
-ok(run(test(["hmactest"])), "running hmactest");
+simple_test("test_hmac", "hmactest", "hmac");