diff options
author | Matt Caswell <matt@openssl.org> | 2020-07-01 11:19:58 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-07-03 17:20:38 +0100 |
commit | 5b393802ede77d6b5678e69c3ba9854042726aa1 (patch) | |
tree | 254abad82257e2c53b78aa420199cd0afaf790f1 /test/recipes | |
parent | ca3245a61989009a99931748723d12e30d0a66b2 (diff) | |
download | openssl-5b393802ede77d6b5678e69c3ba9854042726aa1.tar.gz |
Don't run the cmp_cli tests if using FUZZING_BUILD_MODE
[extended tests]
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12275)
Diffstat (limited to 'test/recipes')
-rw-r--r-- | test/recipes/81-test_cmp_cli.t | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/recipes/81-test_cmp_cli.t b/test/recipes/81-test_cmp_cli.t index 385c259729..32239ef35b 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)$/; |