From 28b4efe922e2df28e839753462c89e3a6c14f77b Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Wed, 30 Mar 2016 17:31:20 +0200 Subject: [PATCH] cmake: Run the Lua tests too --- tests/CMakeLists.txt | 1 + tests/lua/CMakeLists.txt | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 tests/lua/CMakeLists.txt diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index bd66f84..ed9fdae 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -6,3 +6,4 @@ set(TEST_WRAPPER ${CMAKE_CURRENT_BINARY_DIR}/wrapper.sh) add_subdirectory(cc) add_subdirectory(python) +add_subdirectory(lua) diff --git a/tests/lua/CMakeLists.txt b/tests/lua/CMakeLists.txt new file mode 100644 index 0000000..a871344 --- /dev/null +++ b/tests/lua/CMakeLists.txt @@ -0,0 +1,6 @@ +find_program(LUAJIT luajit) + +if(LUAJIT) + add_test(NAME lua_test_clang WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + COMMAND sudo ${LUAJIT} test_clang.lua) +endif() -- 2.7.4