Run fuzz test in CTest (#1707)
This commit is contained in:
parent
1d6b22b5f0
commit
97ae6733ed
@ -102,3 +102,5 @@ if(HTTPLIB_IS_USING_OPENSSL)
|
|||||||
COMMAND_ERROR_IS_FATAL ANY
|
COMMAND_ERROR_IS_FATAL ANY
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_subdirectory(fuzzing)
|
||||||
|
10
test/fuzzing/CMakeLists.txt
Normal file
10
test/fuzzing/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
file(GLOB HTTPLIB_CORPUS corpus/*)
|
||||||
|
add_executable(httplib-test-fuzz
|
||||||
|
server_fuzzer.cc
|
||||||
|
standalone_fuzz_target_runner.cpp
|
||||||
|
)
|
||||||
|
target_link_libraries(httplib-test-fuzz PRIVATE httplib)
|
||||||
|
add_test(
|
||||||
|
NAME httplib-test-fuzz
|
||||||
|
COMMAND httplib-test-fuzz ${HTTPLIB_CORPUS}
|
||||||
|
)
|
Loading…
x
Reference in New Issue
Block a user