summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b75ec9e..5fd488e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -155,11 +155,15 @@ add_lua_test ( test/cf.lua )
add_lua_test ( test/echo.lua )
add_lua_test ( test/env.lua )
add_lua_test ( test/factorial.lua )
-add_lua_test ( test/fib.lua )
+add_lua_test ( test/fib.lua 20 )
add_lua_test ( test/fibfor.lua )
#add_lua_test ( test/globals.lua ) # Requires input
add_lua_test ( test/hello.lua )
-add_lua_test ( test/life.lua )
+file(READ test/life.lua _data) # life.lua test, with reduced run-time.
+string(REPLACE "40,20" "20,15" _data "${_data}")
+string(REPLACE 2000 20 _data "${_data}")
+file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/test/life-quick.lua "${_data}")
+add_lua_test ( ${CMAKE_CURRENT_BINARY_DIR}/test/life-quick.lua )
#add_lua_test ( test/luac.lua ) # Requires input
add_lua_test ( test/printf.lua )
#add_lua_test ( test/readonly.lua ) # this is aimed to fail, modification is required