From e68f5e786914ca46f5f8a4ff9f29cfd6cbe6975e Mon Sep 17 00:00:00 2001 From: Walter Schell Date: Thu, 12 May 2022 20:34:05 -0400 Subject: [PATCH] Added tests to CMakeLists.txt --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 430b596..4b4ea12 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,6 @@ cmake_minimum_required(VERSION 3.1) project(lua LANGUAGES C VERSION 5.4.4) +enable_testing() option(LUA_SUPPORT_DL "Support dynamic loading of compiled modules" OFF) option(LUA_BUILD_AS_CXX "Build lua as C++" OFF) @@ -21,3 +22,5 @@ endif() add_subdirectory(lua-5.4.4) + +add_test(NAME lua-testsuite COMMAND lua -e "_U=true" all.lua WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/lua-5.4.4-tests) \ No newline at end of file