Test suite: chomp->s/\R// to harmonize with mingw 'make test'.
[openssl.git] / test / recipes / 25-test_x509.t
1 #! /usr/bin/perl
2
3 use strict;
4 use warnings;
5
6 use File::Spec;
7 use OpenSSL::Test qw/:DEFAULT top_file/;
8
9 setup("test_x509");
10
11 plan tests => 4;
12
13 require_ok(top_file('test','recipes','tconversion.pl'));
14
15 subtest 'x509 -- x.509 v1 certificate' => sub {
16     tconversion("x509", top_file("test","testx509.pem"));
17 };
18 subtest 'x509 -- first x.509 v3 certificate' => sub {
19     tconversion("x509", top_file("test","v3-cert1.pem"));
20 };
21 subtest 'x509 -- second x.509 v3 certificate' => sub {
22     tconversion("x509", top_file("test","v3-cert2.pem"));
23 };