]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Skip test_cmp_cli if 'lsof' or 'kill' command is not available
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Sat, 11 Jul 2020 11:20:39 +0000 (13:20 +0200)
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>
Wed, 22 Jul 2020 05:27:42 +0000 (07:27 +0200)
Fixes #12324
partly fixes #12378

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12422)

test/recipes/81-test_cmp_cli.t

index 32239ef35bd2464fed6ca2a567ffbec8bd92a943..fe837d63dc9a9065924362c4f35f0ab53ef592f5 100644 (file)
@@ -24,15 +24,20 @@ BEGIN {
 use lib srctop_dir('Configurations');
 use lib bldtop_dir('.');
 use platform;
+plan skip_all => "These tests are not supported in a fuzz build"
+    if config('options') =~ /-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION/;
 
 plan skip_all => "These tests are not supported in a no-cmp build"
     if disabled("cmp");
 plan skip_all => "These tests are not supported in a no-ec build"
     if disabled("ec");
-plan skip_all => "These tests are not supported in a fuzz build"
-    if config('options') =~ /-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION/;
-plan skip_all => "Tests involving server not available on Windows or VMS"
+
+plan skip_all => "Tests involving CMP server not available on Windows or VMS"
     if $^O =~ /^(VMS|MSWin32)$/;
+plan skip_all => "Tests involving CMP server require 'kill' command"
+    unless `which kill`;
+plan skip_all => "Tests involving CMP server require 'lsof' command"
+    unless `which lsof`; # this typically excludes Solaris
 
 sub chop_dblquot { # chop any leading & trailing '"' (needed for Windows)
     my $str = shift;