summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-03-02 18:27:17 +0100
committerRichard Levitte <levitte@openssl.org>2017-03-02 18:27:17 +0100
commit51f5930ae6d17c838674f3129d992a0366a63139 (patch)
tree71f88546ad3c702cfafda1b266fdb97c7040b167 /test
parenta4c5f8593c1451aa40c814365d3a8ce54de92bd2 (diff)
-precert doesn't work when configured no-ct, don't try to test it then
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2827)
Diffstat (limited to 'test')
-rw-r--r--test/recipes/80-test_ca.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/recipes/80-test_ca.t b/test/recipes/80-test_ca.t
index 19567a1f32..f62d9d59ed 100644
--- a/test/recipes/80-test_ca.t
+++ b/test/recipes/80-test_ca.t
@@ -13,6 +13,7 @@ use warnings;
use POSIX;
use File::Path 2.00 qw/rmtree/;
use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file/;
+use OpenSSL::Test::Utils;
setup("test_ca");
@@ -42,6 +43,9 @@ plan tests => 5;
ok(run(perlapp(["CA.pl", "-verify", "newcert.pem"])),
'verifying new certificate');
+ skip "CT not configured, can't use -precert", 1
+ if disabled("ct");
+
$ENV{OPENSSL_CONFIG} = "-config ".srctop_file("test", "Uss.cnf");
ok(run(perlapp(["CA.pl", "-precert"], stderr => undef)),
'creating new pre-certificate');