test: move fuzzing tests from google/oss-fuzz repository (#4719)

This commit is contained in:
tyler92
2024-10-10 14:30:10 +03:00
committed by GitHub
parent c038b52f36
commit aa0faed54f
40 changed files with 857 additions and 0 deletions

View File

@@ -212,6 +212,9 @@ option(ENABLE_COMPILER_WARNINGS
option(ENABLE_SAMPLES
"Set to OFF|ON (default is OFF) to control build of POCO samples" OFF)
option(ENABLE_FUZZING
"Set to OFF|ON (default is OFF) to control build of fuzzing targets for oss-fuzz (Clang compiler is required)" OFF)
option(POCO_UNBUNDLED
"Set to OFF|ON (default is OFF) to control linking dependencies as external" OFF)
@@ -226,6 +229,14 @@ else()
message(STATUS "Building without tests & samples")
endif()
if(ENABLE_FUZZING)
if(NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
message(FATAL_ERROR "ENABLE_FUZZING flag requires using Clang compiler")
else()
message(STATUS "Building fuzzing test targets with engine $ENV{LIB_FUZZING_ENGINE}")
endif()
endif()
if(POCO_UNBUNDLED)
message(STATUS "Using external sqlite, zlib, pcre2, expat, libpng, ...")
else()