aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-06-29 10:49:14 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-06-29 10:49:14 +0200
commitd971983d5e98493a70f284f278d046a5bc95ad55 (patch)
treed83cb388df4a716dc9236a7168390d269dec5cc4
parent946f8f64ef47e0557a2322dd8a2db55d922b528a (diff)
downloadlibssh-d971983d5e98493a70f284f278d046a5bc95ad55.tar.gz
libssh-d971983d5e98493a70f284f278d046a5bc95ad55.tar.xz
libssh-d971983d5e98493a70f284f278d046a5bc95ad55.zip
cmake: Add SERVER_TESTING option
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--DefineOptions.cmake1
-rw-r--r--tests/CMakeLists.txt4
2 files changed, 3 insertions, 2 deletions
diff --git a/DefineOptions.cmake b/DefineOptions.cmake
index 4b5d7930..d08c237f 100644
--- a/DefineOptions.cmake
+++ b/DefineOptions.cmake
@@ -13,6 +13,7 @@ option(WITH_PCAP "Compile with Pcap generation support" ON)
option(WITH_INTERNAL_DOC "Compile doxygen internal documentation" OFF)
option(UNIT_TESTING "Build with unit tests" OFF)
option(CLIENT_TESTING "Build with client tests; requires openssh" OFF)
+option(SERVER_TESTING "Build with server tests; requires openssh and dropbear" OFF)
option(WITH_BENCHMARKS "Build benchmarks tools" OFF)
option(WITH_EXAMPLES "Build examples" ON)
option(WITH_NACL "Build with libnacl (curve25519)" ON)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index f0a809d6..e446f10b 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -135,9 +135,9 @@ if (WITH_BENCHMARKS)
add_subdirectory(benchmarks)
endif (WITH_BENCHMARKS)
-if (WITH_SERVER)
+if (WITH_SERVER AND SERVER_TESTING)
add_subdirectory(pkd)
-endif (WITH_SERVER)
+endif (WITH_SERVER AND SERVER_TESTING)
if (FUZZ_TESTING)
add_subdirectory(fuzz)