-precert doesn't work when configured no-ct, don't try to test it then
authorRichard Levitte <levitte@openssl.org>
Thu, 2 Mar 2017 17:27:17 +0000 (18:27 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 2 Mar 2017 17:27:17 +0000 (18:27 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2827)

test/recipes/80-test_ca.t

index 19567a1f32fcc6e8298e224ea7648f6e5d795a4c..f62d9d59ed764af790b004cea0ec71eaaf06ace0 100644 (file)
@@ -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');