aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-02-04 11:49:13 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-02-04 11:52:45 +0100
commit25ff1214a40531cea33a91eed6225d4f4bf51cbc (patch)
tree6a43300bf0e84762996ef54ce46b471a929831e4 /tests
parentd84b0926f0ff285466d0a9d9ca631f1dfbd3a75e (diff)
downloadlibssh-25ff1214a40531cea33a91eed6225d4f4bf51cbc.tar.gz
libssh-25ff1214a40531cea33a91eed6225d4f4bf51cbc.tar.xz
libssh-25ff1214a40531cea33a91eed6225d4f4bf51cbc.zip
cmake: Build ssh_server_fuzzer if enabled
Fixes T67 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
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})