From fac61ea4618c83826b51aebf03cbc2bc3ac7b8c8 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Mon, 23 Oct 2023 14:26:32 +0200 Subject: quic_record, quicapi, and quicfaults tests do not support fuzzing builds Reviewed-by: Hugo Landau Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/22472) --- .github/workflows/fuzz-checker.yml | 1 + test/recipes/70-test_quic_record.t | 3 +++ test/recipes/75-test_quicapi.t | 3 +++ test/recipes/90-test_quicfaults.t | 3 +++ 4 files changed, 10 insertions(+) diff --git a/.github/workflows/fuzz-checker.yml b/.github/workflows/fuzz-checker.yml index 766a4a1326..f476b525cf 100644 --- a/.github/workflows/fuzz-checker.yml +++ b/.github/workflows/fuzz-checker.yml @@ -23,6 +23,7 @@ jobs: config: enable-fuzz-afl no-module, install: afl++-clang, cc: afl-clang-fast + tests: - }, { name: libFuzzer, config: enable-fuzz-libfuzzer enable-asan enable-ubsan, diff --git a/test/recipes/70-test_quic_record.t b/test/recipes/70-test_quic_record.t index 3fd782000c..52acaa8aed 100644 --- a/test/recipes/70-test_quic_record.t +++ b/test/recipes/70-test_quic_record.t @@ -14,6 +14,9 @@ setup("test_quic_record"); plan skip_all => "QUIC protocol is not supported by this OpenSSL build" if disabled('quic'); +plan skip_all => "These tests are not supported in a fuzz build" + if config('options') =~ /-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION|enable-fuzz-afl/; + plan tests => 1; ok(run(test(["quic_record_test"]))); diff --git a/test/recipes/75-test_quicapi.t b/test/recipes/75-test_quicapi.t index bd411f221c..e1ce5eabb2 100644 --- a/test/recipes/75-test_quicapi.t +++ b/test/recipes/75-test_quicapi.t @@ -22,6 +22,9 @@ my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0); plan skip_all => "QUIC protocol is not supported by this OpenSSL build" if disabled('quic'); +plan skip_all => "These tests are not supported in a fuzz build" + if config('options') =~ /-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION|enable-fuzz-afl/; + plan tests => ($no_fips ? 0 : 1) # quicapitest with fips + 1; # quicapitest with default provider diff --git a/test/recipes/90-test_quicfaults.t b/test/recipes/90-test_quicfaults.t index 7fa039a370..710fdad869 100644 --- a/test/recipes/90-test_quicfaults.t +++ b/test/recipes/90-test_quicfaults.t @@ -20,6 +20,9 @@ use lib bldtop_dir('.'); plan skip_all => "QUIC protocol is not supported by this OpenSSL build" if disabled('quic'); +plan skip_all => "These tests are not supported in a fuzz build" + if config('options') =~ /-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION|enable-fuzz-afl/; + plan tests => 2; ok(run(test(["quicfaultstest", srctop_dir("test", "certs")])), -- cgit v1.2.3