summaryrefslogtreecommitdiffstats
path: root/test/recipes
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2021-04-22 16:58:50 +0200
committerMatt Caswell <matt@openssl.org>2021-05-11 15:59:43 +0200
commit5442611dffed2c345ef83d494f2ef7ffb9cf3883 (patch)
tree5291ec32b87aa8e13cb9befed9fe8f39505272be /test/recipes
parentModify the legacy provider to use OSSL_LIB_CTX_new_child() (diff)
downloadopenssl-5442611dffed2c345ef83d494f2ef7ffb9cf3883.tar.xz
openssl-5442611dffed2c345ef83d494f2ef7ffb9cf3883.zip
Add a test for OSSL_LIB_CTX_new_child()
Check that we can create such a libctx and usable providers are loaded into it. Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14991)
Diffstat (limited to 'test/recipes')
-rw-r--r--test/recipes/04-test_provider.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/recipes/04-test_provider.t b/test/recipes/04-test_provider.t
index 9195a424cd..44274f8f07 100644
--- a/test/recipes/04-test_provider.t
+++ b/test/recipes/04-test_provider.t
@@ -8,11 +8,14 @@
use strict;
use OpenSSL::Test qw(:DEFAULT bldtop_dir);
-use OpenSSL::Test::Simple;
use OpenSSL::Test::Utils;
setup("test_provider");
+plan tests => 2;
+
+ok(run(test(['provider_test'])), "provider_test");
+
$ENV{"OPENSSL_MODULES"} = bldtop_dir("test");
-simple_test("test_provider", "provider_test");
+ok(run(test(['provider_test', '-loaded'])), "provider_test -loaded");