mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 01:41:35 +08:00
tests: remove previous fuzz testing
We now use https://github.com/google/fuzztest (see previous commits). And the test was also failing to build (https://github.com/PX4/PX4-Autopilot/actions/workflows/cflite_batch.yml) This reverts these commits: -9eda5b373c-2cbc993976-be0a5b4b32
This commit is contained in:
@@ -162,7 +162,7 @@ function(px4_add_common_flags)
|
||||
-Wno-overloaded-virtual # TODO: fix and remove
|
||||
)
|
||||
|
||||
if((NOT CMAKE_BUILD_TYPE STREQUAL FuzzTesting) AND (NOT PX4_CONFIG MATCHES "px4_sitl"))
|
||||
if((NOT BUILD_TESTING) AND (NOT PX4_CONFIG MATCHES "px4_sitl"))
|
||||
list(APPEND cxx_flags
|
||||
-fno-rtti
|
||||
)
|
||||
|
||||
@@ -131,23 +131,6 @@ elseif (CMAKE_BUILD_TYPE STREQUAL UndefinedBehaviorSanitizer)
|
||||
set_tests_properties(${test_name} PROPERTIES FAIL_REGULAR_EXPRESSION "runtime error:")
|
||||
endfunction(sanitizer_fail_test_on_error)
|
||||
|
||||
elseif (CMAKE_BUILD_TYPE STREQUAL FuzzTesting)
|
||||
message(STATUS "FuzzTesting enabled")
|
||||
|
||||
add_compile_options(
|
||||
-g3
|
||||
-fsanitize=fuzzer
|
||||
-DFUZZTESTING
|
||||
)
|
||||
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=fuzzer $ENV{LIB_FUZZING_ENGINE}" CACHE INTERNAL "" FORCE)
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fsanitize=fuzzer $ENV{LIB_FUZZING_ENGINE}" CACHE INTERNAL "" FORCE)
|
||||
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -fsanitize=fuzzer $ENV{LIB_FUZZING_ENGINE}" CACHE INTERNAL "" FORCE)
|
||||
|
||||
|
||||
function(sanitizer_fail_test_on_error test_name)
|
||||
# Not sure what to do here
|
||||
endfunction(sanitizer_fail_test_on_error)
|
||||
else()
|
||||
|
||||
function(sanitizer_fail_test_on_error test_name)
|
||||
|
||||
Reference in New Issue
Block a user