2012-11-02 08:20:46 +04:00
|
|
|
|
|
|
|
set(MODULE_NAME "TestWinPRUtils")
|
|
|
|
set(MODULE_PREFIX "TEST_WINPR_UTILS")
|
|
|
|
|
|
|
|
set(${MODULE_PREFIX}_DRIVER ${MODULE_NAME}.c)
|
|
|
|
|
|
|
|
set(${MODULE_PREFIX}_TESTS
|
2014-03-25 02:20:34 +04:00
|
|
|
TestIni.c
|
2014-09-28 19:02:39 +04:00
|
|
|
TestImage.c
|
2014-09-17 19:30:04 +04:00
|
|
|
TestBacktrace.c
|
2012-12-06 01:04:01 +04:00
|
|
|
TestQueue.c
|
2013-02-28 17:41:51 +04:00
|
|
|
TestPrint.c
|
2013-06-15 00:55:05 +04:00
|
|
|
TestPubSub.c
|
2015-02-12 20:13:06 +03:00
|
|
|
TestStream.c
|
2014-03-05 03:15:03 +04:00
|
|
|
TestBitStream.c
|
2012-12-08 04:40:44 +04:00
|
|
|
TestArrayList.c
|
2013-08-06 01:29:14 +04:00
|
|
|
TestLinkedList.c
|
2013-07-06 02:23:26 +04:00
|
|
|
TestListDictionary.c
|
2013-01-25 00:08:49 +04:00
|
|
|
TestCmdLine.c
|
2013-09-15 23:46:02 +04:00
|
|
|
TestWLog.c
|
2014-11-16 15:59:12 +03:00
|
|
|
TestWLogCallback.c
|
2014-02-10 06:55:21 +04:00
|
|
|
TestHashTable.c
|
2013-08-15 08:01:42 +04:00
|
|
|
TestBufferPool.c
|
2013-04-12 05:59:02 +04:00
|
|
|
TestStreamPool.c
|
2013-02-20 23:48:32 +04:00
|
|
|
TestMessageQueue.c
|
|
|
|
TestMessagePipe.c)
|
2012-11-02 08:20:46 +04:00
|
|
|
|
|
|
|
create_test_sourcelist(${MODULE_PREFIX}_SRCS
|
|
|
|
${${MODULE_PREFIX}_DRIVER}
|
|
|
|
${${MODULE_PREFIX}_TESTS})
|
|
|
|
|
|
|
|
add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
|
|
|
|
2014-07-10 02:03:20 +04:00
|
|
|
target_link_libraries(${MODULE_NAME} winpr)
|
2012-11-02 08:20:46 +04:00
|
|
|
|
|
|
|
set_target_properties(${MODULE_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${TESTING_OUTPUT_DIRECTORY}")
|
|
|
|
|
|
|
|
foreach(test ${${MODULE_PREFIX}_TESTS})
|
|
|
|
get_filename_component(TestName ${test} NAME_WE)
|
|
|
|
add_test(${TestName} ${TESTING_OUTPUT_DIRECTORY}/${MODULE_NAME} ${TestName})
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "WinPR/Test")
|
|
|
|
|