From: Richard Levitte Date: Fri, 27 Apr 2018 04:05:49 +0000 (+0200) Subject: Skip the CMS test if configured 'no-cms' X-Git-Tag: OpenSSL_1_0_2p~68 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ad2510836c8a5b03b4a63e276e370a64161cd6b8;p=oweals%2Fopenssl.git Skip the CMS test if configured 'no-cms' Reviewed-by: Andy Polyakov (Merged from https://github.com/openssl/openssl/pull/6108) --- diff --git a/test/cms-test.pl b/test/cms-test.pl index baa3b5948a..69436f1361 100644 --- a/test/cms-test.pl +++ b/test/cms-test.pl @@ -100,6 +100,13 @@ my $no_ec2m; my $no_ecdh; my $ossl8 = `$ossl_path version -v` =~ /0\.9\.8/; +system ("$ossl_path no-cms > $null_path"); +if ($? == 0) + { + print STDERR "CMS disabled. skipping...\n"; + exit 0; + } + system ("$ossl_path no-ec > $null_path"); if ($? == 0) {