1
## only run the tests if we have lua somewhere
3
# for now this is unix specific as we use env-vars and shell-scripts
4
IF(LUA_EXECUTABLE AND UNIX )
6
${CMAKE_CURRENT_SOURCE_DIR}/lua-tests-wrapper.sh.in
7
${CMAKE_CURRENT_BINARY_DIR}/lua-tests-wrapper.sh
9
ADD_TEST(lua-tests/base
10
sh -x ${CMAKE_CURRENT_BINARY_DIR}/lua-tests-wrapper.sh
11
${LUA_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/run-tests.lua ${CMAKE_CURRENT_SOURCE_DIR}/base)
12
ENDIF(LUA_EXECUTABLE AND UNIX )