diff options
author | Richard Levitte <levitte@openssl.org> | 2023-11-29 14:24:18 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2023-12-04 15:12:34 +0100 |
commit | 31c2c12f2dada75c334f6a9aa60c8424cf4fd040 (patch) | |
tree | 23b550031afe73a09e23b01db329aa8d4d599f93 /test/recipes/04-test_provider.t | |
parent | After initializing a provider, check if its output dispatch table is NULL (diff) | |
download | openssl-31c2c12f2dada75c334f6a9aa60c8424cf4fd040.tar.xz openssl-31c2c12f2dada75c334f6a9aa60c8424cf4fd040.zip |
Add a minimal test provider
We test its validity by trying to load it.
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/22866)
Diffstat (limited to '')
-rw-r--r-- | test/recipes/04-test_provider.t | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/recipes/04-test_provider.t b/test/recipes/04-test_provider.t index 312def7757..1233cc4f93 100644 --- a/test/recipes/04-test_provider.t +++ b/test/recipes/04-test_provider.t @@ -12,10 +12,17 @@ use OpenSSL::Test::Utils; setup("test_provider"); -plan tests => 2; +plan tests => 3; ok(run(test(['provider_test'])), "provider_test"); $ENV{"OPENSSL_MODULES"} = bldtop_dir("test"); ok(run(test(['provider_test', '-loaded'])), "provider_test -loaded"); + + SKIP: { + skip "no module support", 1 if disabled("module"); + + ok(run(app(['openssl', 'list', '-provider', 'p_minimal', + '-providers', '-verbose']))); +} |