d13a17a27c
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
39 строки
1.7 KiB
CMake
39 строки
1.7 KiB
CMake
project(unittests C)
|
|
|
|
include_directories(${OPENSSL_INCLUDE_DIR})
|
|
|
|
add_cmocka_test(torture_buffer torture_buffer.c ${TORTURE_LIBRARY})
|
|
add_cmocka_test(torture_callbacks torture_callbacks.c ${TORTURE_LIBRARY})
|
|
add_cmocka_test(torture_crypto torture_crypto.c ${TORTURE_LIBRARY})
|
|
add_cmocka_test(torture_init torture_init.c ${TORTURE_LIBRARY})
|
|
add_cmocka_test(torture_list torture_list.c ${TORTURE_LIBRARY})
|
|
add_cmocka_test(torture_misc torture_misc.c ${TORTURE_LIBRARY})
|
|
add_cmocka_test(torture_config torture_config.c ${TORTURE_LIBRARY})
|
|
add_cmocka_test(torture_options torture_options.c ${TORTURE_LIBRARY})
|
|
add_cmocka_test(torture_isipaddr torture_isipaddr.c ${TORTURE_LIBRARY})
|
|
if (UNIX AND NOT WIN32)
|
|
# requires ssh-keygen
|
|
add_cmocka_test(torture_keyfiles torture_keyfiles.c ${TORTURE_LIBRARY})
|
|
add_cmocka_test(torture_pki torture_pki.c ${TORTURE_LIBRARY})
|
|
add_cmocka_test(torture_pki_rsa torture_pki_rsa.c ${TORTURE_LIBRARY})
|
|
add_cmocka_test(torture_pki_ed25519 torture_pki_ed25519.c ${TORTURE_LIBRARY})
|
|
|
|
if (HAVE_DSA)
|
|
add_cmocka_test(torture_pki_dsa torture_pki_dsa.c ${TORTURE_LIBRARY})
|
|
endif()
|
|
if (HAVE_ECC)
|
|
add_cmocka_test(torture_pki_ecdsa torture_pki_ecdsa.c ${TORTURE_LIBRARY})
|
|
endif()
|
|
|
|
# requires /dev/null
|
|
add_cmocka_test(torture_channel torture_channel.c ${TORTURE_LIBRARY})
|
|
# requires pthread
|
|
if (LIBSSH_THREADS)
|
|
add_cmocka_test(torture_rand torture_rand.c ${TORTURE_LIBRARY})
|
|
# Not working correctly
|
|
#if (WITH_SERVER)
|
|
# add_cmocka_test(torture_server_x11 torture_server_x11.c ${TORTURE_LIBRARY})
|
|
#endif (WITH_SERVER)
|
|
endif (LIBSSH_THREADS)
|
|
endif (UNIX AND NOT WIN32)
|