From ca031704029853b8701ccef1a8d6807b93ff243a Mon Sep 17 00:00:00 2001 From: David Manura Date: Sat, 14 May 2011 20:08:07 -0400 Subject: test - reduce runtime of tests like life.lua --- CMakeLists.txt | 8 ++++++-- 1 file 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 -- cgit v1.2.1