aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt4
-rw-r--r--tests/fuzz/CMakeLists.txt9
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 4f2413d1..4f933b5d 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -138,3 +138,7 @@ endif (WITH_BENCHMARKS)
if (WITH_SERVER)
add_subdirectory(pkd)
endif (WITH_SERVER)
+
+if (FUZZ_TESTING)
+ add_subdirectory(fuzz)
+endif()
diff --git a/tests/fuzz/CMakeLists.txt b/tests/fuzz/CMakeLists.txt
new file mode 100644
index 00000000..b34ca66a
--- /dev/null
+++ b/tests/fuzz/CMakeLists.txt
@@ -0,0 +1,9 @@
+project(fuzzing CXX)
+
+find_package(ClangFuzzer)
+
+add_executable(ssh_server_fuzzer ssh_server_fuzzer.cpp)
+target_link_libraries(ssh_server_fuzzer
+ ${CLANG_FUZZER_LIBRARY}
+ ${LIBSSH_THREADS_STATIC_LIBRARY}
+ ${LIBSSH_THREADS_LINK_LIBRARIES})