chore(tests/lua/threads): break lua thread tests into individual tests

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-11-27 15:06:07 -08:00
parent f7e8545e97
commit 75b4a96d0e

View file

@ -45,8 +45,12 @@ ENDFOREACH(T)
if((${CYGWIN} EQUAL "1") OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux")) if((${CYGWIN} EQUAL "1") OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux"))
if (NOT (${CMAKE_CXX_COMPILER} MATCHES "clang")) if (NOT (${CMAKE_CXX_COMPILER} MATCHES "clang"))
add_test(NAME leanluathreadtests file(GLOB LEANLUATHREADTESTS "${LEAN_SOURCE_DIR}/../tests/lua/threads/*.lua")
WORKING_DIRECTORY "${LEAN_SOURCE_DIR}/../tests/lua/threads" FOREACH(T ${LEANLUATHREADTESTS})
COMMAND "../test.sh" "${CMAKE_CURRENT_BINARY_DIR}/lean") GET_FILENAME_COMPONENT(T_NAME ${T} NAME)
add_test(NAME "leanluathreadtest_${T_NAME}"
WORKING_DIRECTORY "${LEAN_SOURCE_DIR}/../tests/lua/threads"
COMMAND "../test_single.sh" "${CMAKE_CURRENT_BINARY_DIR}/lean" ${T})
ENDFOREACH(T)
endif() endif()
endif() endif()