Skip the CMS tests if CMS is disabled
authorMatt Caswell <matt@openssl.org>
Mon, 21 Mar 2016 11:07:14 +0000 (11:07 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 21 Mar 2016 14:33:40 +0000 (14:33 +0000)
This fixes the no-cms compile time option.

Reviewed-by: Emilia Käsper <emilia@openssl.org>
test/recipes/80-test_cms.t

index 21926d430ea2f626727c9a354a381ccfe21b3425..645f37a7dee563b463d86ca9d8173f61869c6fe6 100644 (file)
@@ -11,6 +11,9 @@ use OpenSSL::Test::Utils;
 
 setup("test_cms");
 
+plan skip_all => "CMS is not supported by this OpenSSL build"
+    if disabled("cms");
+
 my $smdir    = srctop_dir("test", "smime-certs");
 my $smcont   = srctop_file("test", "smcont.txt");
 my ($no_des, $no_dh, $no_dsa, $no_ec, $no_ec2m, $no_rc2, $no_zlib)