Skip to content

Commit

Permalink
Run fuzz test in CTest (#1707)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-park authored Nov 10, 2023
1 parent 1d6b22b commit 97ae673
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ if(HTTPLIB_IS_USING_OPENSSL)
COMMAND_ERROR_IS_FATAL ANY
)
endif()

add_subdirectory(fuzzing)
10 changes: 10 additions & 0 deletions test/fuzzing/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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}
)

0 comments on commit 97ae673

Please sign in to comment.