From: Matt Caswell Date: Wed, 1 Jul 2020 10:19:58 +0000 (+0100) Subject: Don't run the cmp_cli tests if using FUZZING_BUILD_MODE X-Git-Tag: openssl-3.0.0-alpha5~104 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5b393802ede77d6b5678e69c3ba9854042726aa1;p=thirdparty%2Fopenssl.git Don't run the cmp_cli tests if using FUZZING_BUILD_MODE [extended tests] Reviewed-by: David von Oheimb Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/12275) --- diff --git a/test/recipes/81-test_cmp_cli.t b/test/recipes/81-test_cmp_cli.t index 385c259729d..32239ef35bd 100644 --- a/test/recipes/81-test_cmp_cli.t +++ b/test/recipes/81-test_cmp_cli.t @@ -14,18 +14,23 @@ use warnings; use POSIX; use File::Spec::Functions qw/catfile/; use File::Compare qw/compare_text/; -use OpenSSL::Test qw/:DEFAULT with data_file data_dir bldtop_dir/; +use OpenSSL::Test qw/:DEFAULT with data_file data_dir srctop_dir bldtop_dir/; use OpenSSL::Test::Utils; use Data::Dumper; # for debugging purposes only -setup("test_cmp_cli"); +BEGIN { + setup("test_cmp_cli"); +} +use lib srctop_dir('Configurations'); +use lib bldtop_dir('.'); +use platform; 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 !disabled("fuzz-libfuzzer") || !disabled("fuzz-afl"); + if config('options') =~ /-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION/; plan skip_all => "Tests involving server not available on Windows or VMS" if $^O =~ /^(VMS|MSWin32)$/;