2010-03-02 15:47:14 +03:00
|
|
|
project(unittests C)
|
|
|
|
|
2012-10-07 13:10:27 +04:00
|
|
|
add_cmocka_test(torture_buffer torture_buffer.c ${TORTURE_LIBRARY})
|
|
|
|
add_cmocka_test(torture_callbacks torture_callbacks.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_options torture_options.c ${TORTURE_LIBRARY})
|
|
|
|
add_cmocka_test(torture_isipaddr torture_isipaddr.c ${TORTURE_LIBRARY})
|
2010-12-29 22:33:32 +03:00
|
|
|
if (UNIX AND NOT WIN32)
|
2011-01-01 20:50:32 +03:00
|
|
|
# requires ssh-keygen
|
2012-10-07 13:10:27 +04:00
|
|
|
add_cmocka_test(torture_keyfiles torture_keyfiles.c ${TORTURE_LIBRARY})
|
|
|
|
add_cmocka_test(torture_pki torture_pki.c ${TORTURE_LIBRARY})
|
2011-01-01 20:50:32 +03:00
|
|
|
# requires pthread
|
2012-10-07 13:10:27 +04:00
|
|
|
add_cmocka_test(torture_rand torture_rand.c ${TORTURE_LIBRARY})
|
2013-10-31 15:44:48 +04:00
|
|
|
# requires /dev/null
|
|
|
|
add_cmocka_test(torture_channel torture_channel.c ${TORTURE_LIBRARY})
|
2010-12-29 22:33:32 +03:00
|
|
|
endif (UNIX AND NOT WIN32)
|