2010-06-03 12:36:00 +02:00
|
|
|
project(clienttests C)
|
|
|
|
|
2014-10-13 10:00:25 +02:00
|
|
|
find_package(socket_wrapper)
|
|
|
|
|
2012-10-07 11:10:27 +02:00
|
|
|
add_cmocka_test(torture_algorithms torture_algorithms.c ${TORTURE_LIBRARY})
|
|
|
|
add_cmocka_test(torture_auth torture_auth.c ${TORTURE_LIBRARY})
|
|
|
|
add_cmocka_test(torture_knownhosts torture_knownhosts.c ${TORTURE_LIBRARY})
|
|
|
|
add_cmocka_test(torture_proxycommand torture_proxycommand.c ${TORTURE_LIBRARY})
|
2012-12-27 22:01:37 +01:00
|
|
|
add_cmocka_test(torture_session torture_session.c ${TORTURE_LIBRARY})
|
2013-10-20 12:22:20 +02:00
|
|
|
add_cmocka_test(torture_forward torture_forward.c ${TORTURE_LIBRARY})
|
2013-10-20 17:05:35 +02:00
|
|
|
add_cmocka_test(torture_request_env torture_request_env.c ${TORTURE_LIBRARY})
|
2010-12-28 18:57:02 +01:00
|
|
|
if (WITH_SFTP)
|
2012-10-07 11:10:27 +02:00
|
|
|
add_cmocka_test(torture_sftp_static torture_sftp_static.c ${TORTURE_LIBRARY})
|
|
|
|
add_cmocka_test(torture_sftp_dir torture_sftp_dir.c ${TORTURE_LIBRARY})
|
2013-10-23 15:49:07 +02:00
|
|
|
add_cmocka_test(torture_sftp_read torture_sftp_read.c ${TORTURE_LIBRARY})
|
2010-12-28 18:57:02 +01:00
|
|
|
endif (WITH_SFTP)
|
2014-10-13 10:00:25 +02:00
|
|
|
|
|
|
|
set(LIBSSH_CLIENT_TESTS
|
|
|
|
torture_connect)
|
|
|
|
|
|
|
|
foreach(_CLI_TEST ${LIBSSH_CLIENT_TESTS})
|
|
|
|
add_cmocka_test(${_CLI_TEST} ${_CLI_TEST}.c ${TORTURE_LIBRARY})
|
|
|
|
|
|
|
|
if (OSX)
|
|
|
|
set_property(
|
|
|
|
TEST
|
|
|
|
${_CLI_TEST}
|
|
|
|
PROPERTY
|
|
|
|
ENVIRONMENT DYLD_FORCE_FLAT_NAMESPACE=1;DYLD_INSERT_LIBRARIES=${SOCKET_WRAPPER_LIBRARY})
|
|
|
|
else ()
|
|
|
|
set_property(
|
|
|
|
TEST
|
|
|
|
${_CLI_TEST}
|
|
|
|
PROPERTY
|
|
|
|
ENVIRONMENT ${TORTURE_ENVIRONMENT})
|
|
|
|
endif()
|
|
|
|
endforeach()
|