From 46399d9db2c1a1afdfebac1a7fe64276c7f677de Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 16 Jun 2021 06:47:58 +0200 Subject: [PATCH] UTF-8 not easily supported on VMS command line yet Some tests are designed to test UTF-8 on the command line. We simply disable those on VMS. Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15823) --- test/recipes/25-test_x509.t | 1 + test/recipes/80-test_pkcs12.t | 17 +++++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/test/recipes/25-test_x509.t b/test/recipes/25-test_x509.t index 5b6f8279e7..7e8ce2408e 100644 --- a/test/recipes/25-test_x509.t +++ b/test/recipes/25-test_x509.t @@ -40,6 +40,7 @@ is(cmp_text($out_utf8, $utf), SKIP: { skip "DES disabled", 1 if disabled("des"); + skip "VMS doesn't support command line UTF-8", 1 if $^O eq 'VMS'; my $p12 = srctop_file("test", "shibboleth.pfx"); my $p12pass = "σύνθημα γνώρισμα"; diff --git a/test/recipes/80-test_pkcs12.t b/test/recipes/80-test_pkcs12.t index e03c197e20..c85437f1a8 100644 --- a/test/recipes/80-test_pkcs12.t +++ b/test/recipes/80-test_pkcs12.t @@ -40,7 +40,7 @@ if (eval { require Win32::API; 1; }) { } } elsif ($^O eq "MSWin32") { plan skip_all => "Win32::API unavailable"; -} else { +} elsif ($^O ne "VMS") { # Running MinGW tests transparently under Wine apparently requires # UTF-8 locale... @@ -63,11 +63,16 @@ ok(run(test(["pkcs12_format_test", "-legacy"])), "test pkcs12 formats using lega # Test with a non-default library context (and no loaded providers in the default context) ok(run(test(["pkcs12_format_test", "-context"])), "test pkcs12 formats using a non-default library context"); -# just see that we can read shibboleth.pfx protected with $pass -ok(run(app(["openssl", "pkcs12", "-noout", - "-password", "pass:$pass", - "-in", srctop_file("test", "shibboleth.pfx")])), - "test_load_cert_pkcs12"); +SKIP: { + skip "VMS doesn't have command line UTF-8 support yet in DCL", 1 + if $^O eq "VMS"; + + # just see that we can read shibboleth.pfx protected with $pass + ok(run(app(["openssl", "pkcs12", "-noout", + "-password", "pass:$pass", + "-in", srctop_file("test", "shibboleth.pfx")])), + "test_load_cert_pkcs12"); +} my @path = qw(test certs); my $outfile1 = "out1.p12";