923bda0c4f94361a73843db89628f21a3344007b
[openssl.git] / test / recipes / 25-test_verify.t
1 #! /usr/bin/perl
2
3 use strict;
4 use warnings;
5
6 use File::Spec::Functions qw/canonpath/;
7 use OpenSSL::Test qw/:DEFAULT top_dir top_file/;
8
9 setup("test_verify");
10
11 plan skip_all => "no rehash.time was found."
12     unless (-f top_file("rehash.time"));
13
14 plan tests => 1;
15
16 ok(run(app(["openssl", "verify", "-CApath", top_dir("certs", "demo"),
17             glob(top_file("certs", "demo", "*.pem"))])), "verifying demo certs");