summaryrefslogtreecommitdiff
path: root/test/recipes/20-test_pkeyutl.t
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-02-28 13:47:26 +0000
committerMatt Caswell <matt@openssl.org>2019-03-01 14:11:10 +0000
commited86f884ba10c93a0beb53492c5db463e31a6884 (patch)
tree05dfe4d78798e759e73ae45c937277409ed48bb9 /test/recipes/20-test_pkeyutl.t
parentcc838ee2d66f7295bf7a7e6695aab1080d6791e9 (diff)
downloadopenssl-new-ed86f884ba10c93a0beb53492c5db463e31a6884.tar.gz
Fix no-ec, no-sm2 and no-sm3
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8372)
Diffstat (limited to 'test/recipes/20-test_pkeyutl.t')
-rw-r--r--test/recipes/20-test_pkeyutl.t9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/recipes/20-test_pkeyutl.t b/test/recipes/20-test_pkeyutl.t
index a0511388e3..14575301fa 100644
--- a/test/recipes/20-test_pkeyutl.t
+++ b/test/recipes/20-test_pkeyutl.t
@@ -37,7 +37,12 @@ sub verify
'-digest', 'sm3', '-pkeyopt', 'sm2_id:someid'])));
}
-ok(sign, "Sign a piece of data using SM2");
-ok(verify, "Verify an SM2 signature against a piece of data");
+SKIP: {
+ skip "Skipping tests that require EC, SM2 or SM3", 2
+ if disabled("ec") || disabled("sm2") || disabled("sm3");
+
+ ok(sign, "Sign a piece of data using SM2");
+ ok(verify, "Verify an SM2 signature against a piece of data");
+}
unlink 'signature.sm2';