aboutsummaryrefslogtreecommitdiff
path: root/tests/unittests/CMakeLists.txt
diff options
context:
space:
mode:
authorAlan Dunn <amdunn@gmail.com>2014-04-19 14:20:00 -0500
committerAndreas Schneider <asn@cryptomilk.org>2015-01-20 20:23:19 +0100
commit6b7f275c32418a1a38b6f01466299469f9995f4c (patch)
treed7a19e02a5cdeb9a54d3ea31991669a9eafee2ec /tests/unittests/CMakeLists.txt
parent4bde48bb2e32774533ac0d45485fa6109f3cb891 (diff)
downloadlibssh-6b7f275c32418a1a38b6f01466299469f9995f4c.tar.gz
libssh-6b7f275c32418a1a38b6f01466299469f9995f4c.tar.xz
libssh-6b7f275c32418a1a38b6f01466299469f9995f4c.zip
tests: Add torture_server_x11 test.
torture_server_x11 tests whether a libssh server can correctly parse an X11 request. Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/unittests/CMakeLists.txt')
-rw-r--r--tests/unittests/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unittests/CMakeLists.txt b/tests/unittests/CMakeLists.txt
index 38203991..a5c0d9bc 100644
--- a/tests/unittests/CMakeLists.txt
+++ b/tests/unittests/CMakeLists.txt
@@ -15,4 +15,7 @@ if (UNIX AND NOT WIN32)
add_cmocka_test(torture_rand torture_rand.c ${TORTURE_LIBRARY})
# requires /dev/null
add_cmocka_test(torture_channel torture_channel.c ${TORTURE_LIBRARY})
+ if (WITH_SERVER AND Threads_FOUND)
+ add_cmocka_test(torture_server_x11 torture_server_x11.c ${TORTURE_LIBRARY})
+ endif (WITH_SERVER AND Threads_FOUND)
endif (UNIX AND NOT WIN32)