mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-31 00:03:07 +03:00
tests: Move client tests to a seperate directory.
Tests which require a running sshd should go to tests/client.
This commit is contained in:
@ -9,7 +9,7 @@ option(WITH_GCRYPT "Compile against libgcrypt" OFF)
|
|||||||
option(WITH_PCAP "Compile with Pcap generation support" ON)
|
option(WITH_PCAP "Compile with Pcap generation support" ON)
|
||||||
option(WITH_INTERNAL_DOC "Compile doxygen internal documentation" OFF)
|
option(WITH_INTERNAL_DOC "Compile doxygen internal documentation" OFF)
|
||||||
option(WITH_TESTING "Build with unit tests" 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)
|
if (WITH_TESTING)
|
||||||
set(WITH_STATIC_LIB ON)
|
set(WITH_STATIC_LIB ON)
|
||||||
endif (WITH_TESTING)
|
endif (WITH_TESTING)
|
||||||
|
|
||||||
|
@ -17,3 +17,6 @@ target_link_libraries(${TORTURE_LIBRARY} ${CHECK_LIBRARIES} ${LIBSSH_STATIC_LIBR
|
|||||||
set(TEST_TARGET_LIBRARIES ${SUPPORT_LIBRARY} ${LIBSSH_LINK_LIBRARIES})
|
set(TEST_TARGET_LIBRARIES ${SUPPORT_LIBRARY} ${LIBSSH_LINK_LIBRARIES})
|
||||||
|
|
||||||
add_subdirectory(unittests)
|
add_subdirectory(unittests)
|
||||||
|
if (WITH_CLIENT_TESTING)
|
||||||
|
add_subdirectory(client)
|
||||||
|
endif (WITH_CLIENT_TESTING)
|
||||||
|
4
tests/client/CMakeLists.txt
Normal file
4
tests/client/CMakeLists.txt
Normal 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})
|
@ -1,10 +1,8 @@
|
|||||||
project(unittests C)
|
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_init torture_init.c ${TORTURE_LIBRARY})
|
||||||
add_check_test(torture_list torture_list.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_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_keyfiles torture_keyfiles.c ${TORTURE_LIBRARY})
|
||||||
add_check_test(torture_options torture_options.c ${TORTURE_LIBRARY})
|
add_check_test(torture_options torture_options.c ${TORTURE_LIBRARY})
|
||||||
add_check_test(torture_knownhosts torture_knownhosts.c ${TORTURE_LIBRARY})
|
add_check_test(torture_knownhosts torture_knownhosts.c ${TORTURE_LIBRARY})
|
||||||
|
Reference in New Issue
Block a user