diff options
author | David Manura <dm.git@math2.org> | 2011-05-14 20:08:07 -0400 |
---|---|---|
committer | David Manura <dm.git@math2.org> | 2011-05-14 20:08:07 -0400 |
commit | ca031704029853b8701ccef1a8d6807b93ff243a (patch) | |
tree | 4044585b84b6071377f49018050e251e32f4f235 | |
parent | 04415ae4e21c295aad215ddf7b25ca757e278f39 (diff) | |
download | lua-ca031704029853b8701ccef1a8d6807b93ff243a.tar.gz |
test - reduce runtime of tests like life.lua
-rw-r--r-- | CMakeLists.txt | 8 |
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 |