diff options
author | Richard Levitte <levitte@openssl.org> | 2015-04-17 20:15:22 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-09-07 16:10:57 +0200 |
commit | 4650de3e431d123e988821215f6473e93c3d4b17 (patch) | |
tree | b27e697ae695847c69278fa7a942a1b15b8d67f2 /test/recipes/25-test_pkcs7.t | |
parent | 0c85cc506916039bba86e8335aa71e0e44f038b0 (diff) |
Add recipes for tests related to certificates
Some of them make use of recipes/tconversion.pl.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/recipes/25-test_pkcs7.t')
-rw-r--r-- | test/recipes/25-test_pkcs7.t | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/recipes/25-test_pkcs7.t b/test/recipes/25-test_pkcs7.t new file mode 100644 index 0000000000..586c9180fb --- /dev/null +++ b/test/recipes/25-test_pkcs7.t @@ -0,0 +1,21 @@ +#! /usr/bin/perl + +use strict; +use warnings; + +use File::Spec; +use Test::More; +use OpenSSL::Test qw/:DEFAULT top_file/; + +setup("test_pkcs7"); + +plan tests => 3; + +require_ok(top_file('test','recipes','tconversion.pl')); + +subtest 'pkcs7 conversions -- pkcs7' => sub { + tconversion("p7", top_file("test", "testp7.pem"), "pkcs7"); +}; +subtest 'pkcs7 conversions -- pkcs7d' => sub { + tconversion("p7d", top_file("test", "pkcs7-1.pem"), "pkcs7"); +}; |