summaryrefslogtreecommitdiffstats
path: root/test/bntest.c
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2018-08-16 04:36:01 +0200
committerRichard Levitte <levitte@openssl.org>2019-02-11 15:31:51 +0100
commita43ce58f5569a160272c492c680f2e42d38ec769 (patch)
treeacfaac32bee9b8e5dd832fbb49f95709c3b9741e /test/bntest.c
parentAllow the syntax of the .include directive to optionally have '=' (diff)
downloadopenssl-a43ce58f5569a160272c492c680f2e42d38ec769.tar.xz
openssl-a43ce58f5569a160272c492c680f2e42d38ec769.zip
Updated test command line parsing to support commmon commands
Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6975)
Diffstat (limited to 'test/bntest.c')
-rw-r--r--test/bntest.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/bntest.c b/test/bntest.c
index d042a3e2ba..e4b71e269d 100644
--- a/test/bntest.c
+++ b/test/bntest.c
@@ -2261,6 +2261,17 @@ static int run_file_tests(int i)
return c == 0;
}
+const OPTIONS *test_get_options(void)
+{
+ enum { OPT_TEST_ENUM };
+ static const OPTIONS test_options[] = {
+ OPT_TEST_OPTIONS_WITH_EXTRA_USAGE("[file...]\n"),
+ { OPT_HELP_STR, 1, '-',
+ "file\tFile to run tests on. Normal tests are not run\n" },
+ { NULL }
+ };
+ return test_options;
+}
int setup_tests(void)
{