mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-28 07:13:54 +09:00
tests: Add interoperability tests against TinySSH
This adds a new test suite 'torture_tinyssh' that verifies interoperability with the TinySSH server using various key exchange methods. Fixes #271 Signed-off-by: Bulitha Kawushika De Zoysa <bulithakaushika99@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
d45ce10c83
commit
18d7a3967c
@@ -36,6 +36,10 @@ if (WITH_PKCS11_URI)
|
||||
torture_auth_pkcs11)
|
||||
endif()
|
||||
|
||||
if (TINYSSHD_EXECUTABLE AND NCAT_EXECUTABLE)
|
||||
set(LIBSSH_CLIENT_TESTS ${LIBSSH_CLIENT_TESTS} torture_tinyssh)
|
||||
endif()
|
||||
|
||||
if (HAVE_PTHREAD)
|
||||
set(LIBSSH_CLIENT_TESTS
|
||||
${LIBSSH_CLIENT_TESTS}
|
||||
@@ -92,6 +96,12 @@ foreach(_CLI_TEST ${LIBSSH_CLIENT_TESTS})
|
||||
LINK_LIBRARIES ${TORTURE_LIBRARY} util
|
||||
)
|
||||
|
||||
if (_CLI_TEST STREQUAL "torture_tinyssh")
|
||||
target_compile_definitions(${_CLI_TEST} PRIVATE
|
||||
TINYSSH_KEYS_DIR="${TINYSSH_KEY_DIR}"
|
||||
)
|
||||
endif()
|
||||
|
||||
if (OSX)
|
||||
set_property(
|
||||
TEST
|
||||
|
||||
Reference in New Issue
Block a user