diff options
author | Damian Hobson-Garcia <dhobsong@igel.co.jp> | 2024-04-05 12:33:40 -0400 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2024-04-24 14:05:35 +0100 |
commit | f90d97caab451a49613742c09d3ec1e4e2dcf6bc (patch) | |
tree | e429ed4468a24fd6b41ea374a47031ccd562ded3 /test/recipes | |
parent | 0e8020a45b2f24e85769cd2c66c41f0b7ffa21e4 (diff) |
x509_acert: Add simple API tests
Add a some simple API tests for reading, printing, signing
and verifying attribute certificates.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15857)
Diffstat (limited to 'test/recipes')
-rw-r--r-- | test/recipes/60-test_x509_acert.t | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/recipes/60-test_x509_acert.t b/test/recipes/60-test_x509_acert.t new file mode 100644 index 0000000000..35864e6608 --- /dev/null +++ b/test/recipes/60-test_x509_acert.t @@ -0,0 +1,22 @@ +#! /usr/bin/env perl +# Copyright 2021 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 OpenSSL::Test::Utils; +use OpenSSL::Test qw/:DEFAULT srctop_file/; + +setup("test_x509_acert"); + +plan skip_all => "test_x509_acert uses ec which is not supported by this build" + if disabled("ec"); + +plan tests => 1; + +ok(run(test(["x509_acert_test", srctop_file("test", "certs", "acert.pem"), + srctop_file("test", "certs", "acert_ietf.pem")])), + "running x509_acert_test"); + |