2013-07-29 21:07:39 +04:00
|
|
|
|
|
|
|
set(MODULE_NAME "TestSynch")
|
|
|
|
set(MODULE_PREFIX "TEST_SYNCH")
|
|
|
|
|
|
|
|
set(${MODULE_PREFIX}_DRIVER ${MODULE_NAME}.c)
|
|
|
|
|
|
|
|
set(${MODULE_PREFIX}_TESTS
|
2014-07-24 23:07:44 +04:00
|
|
|
TestSynchInit.c
|
2013-07-29 21:07:39 +04:00
|
|
|
TestSynchEvent.c
|
|
|
|
TestSynchMutex.c
|
2013-08-07 23:48:57 +04:00
|
|
|
TestSynchCritical.c
|
2013-07-29 21:07:39 +04:00
|
|
|
TestSynchSemaphore.c
|
2013-11-15 14:38:59 +04:00
|
|
|
TestSynchThread.c
|
2014-01-25 02:48:55 +04:00
|
|
|
TestSynchTimerQueue.c
|
2014-01-25 03:08:06 +04:00
|
|
|
TestSynchWaitableTimer.c
|
|
|
|
TestSynchWaitableTimerAPC.c)
|
2013-07-29 21:07:39 +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)
|
2013-07-29 21:07:39 +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")
|
2013-08-07 12:20:04 +04:00
|
|
|
|