summaryrefslogtreecommitdiffstats
path: root/test/recipes/15-test_ecdh.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/15-test_ecdh.t
parentRemove test targets from Makefile, have it use run_tests.pl (diff)
downloadopenssl-93de4f58ef8be2cb764343cb3102d41c81f11593.tar.xz
openssl-93de4f58ef8be2cb764343cb3102d41c81f11593.zip
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/15-test_ecdh.t')
-rw-r--r--test/recipes/15-test_ecdh.t11
1 files changed, 2 insertions, 9 deletions
diff --git a/test/recipes/15-test_ecdh.t b/test/recipes/15-test_ecdh.t
index 4c0d97e729..7cdfea6f91 100644
--- a/test/recipes/15-test_ecdh.t
+++ b/test/recipes/15-test_ecdh.t
@@ -1,12 +1,5 @@
#! /usr/bin/perl
-use strict;
-use warnings;
+use OpenSSL::Test::Simple;
-use Test::More;
-use OpenSSL::Test;
-
-setup("test_ecdh");
-
-plan tests => 1;
-ok(run(test(["ecdhtest"])), "running ecdhtest");
+simple_test("test_ecdh", "ecdhtest", "ecdh");