Unified copyright for test recipes
[openssl.git] / test / recipes / 25-test_d2i.t
1 #! /usr/bin/env perl
2 # Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
3 #
4 # Licensed under the OpenSSL license (the "License").  You may not use
5 # this file except in compliance with the License.  You can obtain a copy
6 # in the file LICENSE in the source distribution or at
7 # https://www.openssl.org/source/license.html
8
9
10 use strict;
11 use warnings;
12
13 use File::Spec;
14 use OpenSSL::Test qw/:DEFAULT srctop_file/;
15
16 setup("test_d2i");
17
18 plan tests => 2;
19
20 ok(run(test(["d2i_test", "x509",
21              srctop_file('test','d2i-tests','bad_cert.der')])),
22    "Running d2i_test bad_cert.der");
23
24 ok(run(test(["d2i_test", "generalname",
25              srctop_file('test','d2i-tests','bad_generalname.der')])),
26    "Running d2i_test bad_generalname.der");