From: Tomas Mraz Date: Mon, 28 Jul 2025 09:13:06 +0000 (+0200) Subject: test-ec: Skip SM2 key import test if SM2 is disabled X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39ea2b686545605dcba767ed4047c7f2e905748a;p=thirdparty%2Fopenssl.git test-ec: Skip SM2 key import test if SM2 is disabled Reviewed-by: Matt Caswell Reviewed-by: Saša Nedvědický (Merged from https://github.com/openssl/openssl/pull/28106) (cherry picked from commit 981d6776a339bebbb1aa4a38b940dd1526ab3508) --- diff --git a/test/recipes/15-test_ec.t b/test/recipes/15-test_ec.t index 92f763f4c5f..106da47231e 100644 --- a/test/recipes/15-test_ec.t +++ b/test/recipes/15-test_ec.t @@ -33,10 +33,16 @@ subtest 'EC conversions -- private key' => sub { tconversion( -type => 'ec', -prefix => 'ec-priv', -in => srctop_file("test","testec-p256.pem") ); }; -subtest 'EC conversions -- private key' => sub { - tconversion( -type => 'ec', -prefix => 'sm2-priv', - -in => srctop_file("test","testec-sm2.pem") ); -}; + +SKIP: { + skip "SM2 is not supported by this OpenSSL build", 1 + if disabled("sm2"); + subtest 'EC conversions -- private key' => sub { + tconversion( -type => 'ec', -prefix => 'sm2-priv', + -in => srctop_file("test","testec-sm2.pem") ); + }; +} + subtest 'EC conversions -- private key PKCS#8' => sub { tconversion( -type => 'ec', -prefix => 'ec-pkcs8', -in => srctop_file("test","testec-p256.pem"),