mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-19 04:45:55 +01:00
test: move fuzzing tests from google/oss-fuzz repository (#4719)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user