aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-07-06 17:12:16 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-07-08 12:02:19 +0200
commit343c90ccf437eee49c5c73579a5d1b4ca0753a6e (patch)
treecc0a1168fc354961dc6c23218c009dd277b01adb
parent7cd66d49f833e1c6007a472702d00ec0c92edc7a (diff)
downloadlibssh-343c90ccf437eee49c5c73579a5d1b4ca0753a6e.tar.gz
libssh-343c90ccf437eee49c5c73579a5d1b4ca0753a6e.tar.xz
libssh-343c90ccf437eee49c5c73579a5d1b4ca0753a6e.zip
ctest: Run the ssh_server_fuzzer to check it works
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
-rw-r--r--tests/fuzz/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/fuzz/CMakeLists.txt b/tests/fuzz/CMakeLists.txt
index a12e4c6c..72ca1f47 100644
--- a/tests/fuzz/CMakeLists.txt
+++ b/tests/fuzz/CMakeLists.txt
@@ -9,4 +9,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
PROPERTIES
COMPILE_FLAGS "-fsanitize=fuzzer"
LINK_FLAGS "-fsanitize=fuzzer")
+
+ # Run the fuzzer to make sure it works
+ add_test(ssh_server_fuzzer ${CMAKE_CURRENT_BINARY_DIR}/ssh_server_fuzzer -runs=1)
endif()