1 package
.path
= '../../lua/?.lua;'..package
.path
2 dofile("../../lua/vis.lua")
4 -- redirect output to stdout, stderr is used by the vis UI
7 -- make sure we gracefully terminate, cleanup terminal state etc.
8 os
.exit = function(status
)
12 vis
.events
.subscribe(vis
.events
.WIN_OPEN
, function(win
)
13 -- test.in file passed to vis
14 local in_file
= win
.file
.name
16 -- use the corresponding test.lua file
17 lua_file
= string.gsub(in_file
, '%.in$', '.lua')
18 local ok
, msg
= pcall(dofile, lua_file
)
20 if type(msg
) == 'string' then