tests: Move client tests to a seperate directory.

Tests which require a running sshd should go to tests/client.
This commit is contained in:
Andreas Schneider 2010-06-03 12:36:00 +02:00
parent 94ce1ea451
commit 5dd4f7604f
6 changed files with 8 additions and 3 deletions

View File

@ -9,7 +9,7 @@ option(WITH_GCRYPT "Compile against libgcrypt" OFF)
option(WITH_PCAP "Compile with Pcap generation support" ON)
option(WITH_INTERNAL_DOC "Compile doxygen internal documentation" OFF)
option(WITH_TESTING "Build with unit tests" OFF)
option(WITH_CLIENT_TESTING "Build with client tests; requires a running sshd" OFF)
if (WITH_TESTING)
set(WITH_STATIC_LIB ON)
endif (WITH_TESTING)

View File

@ -17,3 +17,6 @@ target_link_libraries(${TORTURE_LIBRARY} ${CHECK_LIBRARIES} ${LIBSSH_STATIC_LIBR
set(TEST_TARGET_LIBRARIES ${SUPPORT_LIBRARY} ${LIBSSH_LINK_LIBRARIES})
add_subdirectory(unittests)
if (WITH_CLIENT_TESTING)
add_subdirectory(client)
endif (WITH_CLIENT_TESTING)

View File

@ -0,0 +1,4 @@
project(clienttests C)
add_check_test(torture_algorithms torture_algorithms.c ${TORTURE_LIBRARY})
add_check_test(torture_auth torture_auth.c ${TORTURE_LIBRARY})

View File

@ -1,10 +1,8 @@
project(unittests C)
add_check_test(torture_algorithms torture_algorithms.c ${TORTURE_LIBRARY})
add_check_test(torture_init torture_init.c ${TORTURE_LIBRARY})
add_check_test(torture_list torture_list.c ${TORTURE_LIBRARY})
add_check_test(torture_misc torture_misc.c ${TORTURE_LIBRARY})
add_check_test(torture_auth torture_auth.c ${TORTURE_LIBRARY})
add_check_test(torture_keyfiles torture_keyfiles.c ${TORTURE_LIBRARY})
add_check_test(torture_options torture_options.c ${TORTURE_LIBRARY})
add_check_test(torture_knownhosts torture_knownhosts.c ${TORTURE_LIBRARY})