mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-03-24 20:40:09 +09:00
tests: Generate coverage for fuzzing tests
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Eshan Kelkar <eshankelkar@galorithm.com>
This commit is contained in:
@@ -13,6 +13,9 @@ macro(fuzzer name)
|
|||||||
target_sources(${name} PRIVATE $<TARGET_OBJECTS:ssh_server_mock_obj>)
|
target_sources(${name} PRIVATE $<TARGET_OBJECTS:ssh_server_mock_obj>)
|
||||||
target_link_libraries(${name} PRIVATE pthread)
|
target_link_libraries(${name} PRIVATE pthread)
|
||||||
endif()
|
endif()
|
||||||
|
if (WITH_COVERAGE)
|
||||||
|
append_coverage_compiler_flags_to_target(${name})
|
||||||
|
endif (WITH_COVERAGE)
|
||||||
|
|
||||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||||
set_target_properties(${name}
|
set_target_properties(${name}
|
||||||
|
|||||||
Reference in New Issue
Block a user