summaryrefslogtreecommitdiff
path: root/test/README
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2017-07-13 07:37:01 +1000
committerPauli <paul.dale@oracle.com>2017-07-14 07:35:17 +1000
commitc2500f658bbf378a94a76420ea7ef3d2bff17f9c (patch)
tree1c75aea7b9efb2be44b95fa62c637a8b1aab2341 /test/README
parent1f06acc08fc73a1828cca3f162d1dcd76b83a1cf (diff)
downloadopenssl-new-c2500f658bbf378a94a76420ea7ef3d2bff17f9c.tar.gz
Test cleaning and modernisation
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3917)
Diffstat (limited to 'test/README')
-rw-r--r--test/README18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/README b/test/README
index fc9f7d03b1..bc96ff2aea 100644
--- a/test/README
+++ b/test/README
@@ -39,9 +39,9 @@ A recipe that just runs a test executable
A script that just runs a program looks like this:
#! /usr/bin/perl
-
+
use OpenSSL::Test::Simple;
-
+
simple_test("test_{name}", "{name}test", "{name}");
{name} is the unique name you have chosen for your test.
@@ -63,28 +63,28 @@ documentation. For OpenSSL::Test, do `perldoc test/testlib/OpenSSL/Test.pm'.
A script to start from could be this:
#! /usr/bin/perl
-
+
use strict;
use warnings;
use OpenSSL::Test;
-
+
setup("test_{name}");
-
+
plan tests => 2; # The number of tests being performed
-
+
ok(test1, "test1");
ok(test2, "test1");
-
+
sub test1
{
# test feature 1
}
-
+
sub test2
{
# test feature 2
}
-
+
Changes to test/build.info
==========================