summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Manura <dm.git@math2.org>2011-05-14 20:08:07 -0400
committerDavid Manura <dm.git@math2.org>2011-05-14 20:08:07 -0400
commitca031704029853b8701ccef1a8d6807b93ff243a (patch)
tree4044585b84b6071377f49018050e251e32f4f235
parent04415ae4e21c295aad215ddf7b25ca757e278f39 (diff)
downloadlua-ca031704029853b8701ccef1a8d6807b93ff243a.tar.gz
test - reduce runtime of tests like life.lua
-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