diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2013-08-17 17:39:48 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2013-08-17 17:41:14 +0100 |
commit | b85f8afe3735eb77073481ffff2a4c972a6c3b21 (patch) | |
tree | 4ef633a1fb127e226016368c8029c6d84dca3f4e /test | |
parent | 14536c8c9c0abb894afcadb9a58b4b29fc8f7a4d (diff) |
Don't run ECDH CMS tests if EC disabled.
Diffstat (limited to 'test')
-rw-r--r-- | test/cms-test.pl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/cms-test.pl b/test/cms-test.pl index 287f4db34c..5e553c84c9 100644 --- a/test/cms-test.pl +++ b/test/cms-test.pl @@ -82,8 +82,23 @@ my $smdir = "smime-certs"; my $halt_err = 1; my $badcmd = 0; +my $no_ec; my $ossl8 = `$ossl_path version -v` =~ /0\.9\.8/; +system ("$ossl_path no-ec >/dev/null"); +if ($? == 0) + { + $no_ec = 1; + } +elsif ($? == 1) + { + $no_ec = 0; + } +else + { + die "Error checking for EC support\n"; + } + my @smime_pkcs7_tests = ( [ @@ -472,6 +487,11 @@ sub run_smime_tests { $rscmd =~ s/-stream//; $rvcmd =~ s/-stream//; } + if ($no_ec && $tnam =~ /ECDH/) + { + print "$tnam: skipped, EC disabled\n"; + next; + } system("$scmd$rscmd$redir"); if ($?) { print "$tnam: generation error\n"; |