aboutsummaryrefslogtreecommitdiffstats
path: root/test/recipes/04-test_provider.t
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-02-20 22:55:43 +0100
committerRichard Levitte <levitte@openssl.org>2019-03-11 20:40:13 +0100
commit021a65527735af2ddc063d9300138660e3782a15 (patch)
treee231a2cd57d82e92d78370b89d788282a0be1b07 /test/recipes/04-test_provider.t
parent16c2f1bdb5f051ee2c0ac96182a0fb5bad7daa68 (diff)
downloadopenssl-021a65527735af2ddc063d9300138660e3782a15.tar.gz
Add provider tests
Two tests are added, one that tests the internal API, the other tests the public API. Those two tests both test the same provider, which acts both as a built-in provider and as a loadable provider module. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8287)
Diffstat (limited to 'test/recipes/04-test_provider.t')
-rw-r--r--test/recipes/04-test_provider.t18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/recipes/04-test_provider.t b/test/recipes/04-test_provider.t
new file mode 100644
index 0000000000..9195a424cd
--- /dev/null
+++ b/test/recipes/04-test_provider.t
@@ -0,0 +1,18 @@
+#! /usr/bin/env perl
+# Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
+#
+# Licensed under the Apache License 2.0 (the "License"). You may not use
+# this file except in compliance with the License. You can obtain a copy
+# in the file LICENSE in the source distribution or at
+# https://www.openssl.org/source/license.html
+
+use strict;
+use OpenSSL::Test qw(:DEFAULT bldtop_dir);
+use OpenSSL::Test::Simple;
+use OpenSSL::Test::Utils;
+
+setup("test_provider");
+
+$ENV{"OPENSSL_MODULES"} = bldtop_dir("test");
+
+simple_test("test_provider", "provider_test");