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:
parent
f7e8545e97
commit
75b4a96d0e
1 changed files with 7 additions and 3 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue