Fix no-ec, no-sm2 and no-sm3
[openssl.git] / test / recipes / 20-test_pkeyutl.t
index a0511388e322563144e8ecae5a85e88150403dd4..14575301fac87b5cc49e0ea726e44e796b254a45 100644 (file)
@@ -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';