Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 1a21d37a02
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (28 sloc) 0.679 kb
-- running the tests and examples
require 'pl'
local lfs = require 'lfs'
local function quote_if_needed (s)
if s:match '%s' then
s = '"'..s..'"'
end
return s
end
-- get the Lua command-line used to invoke this script
local cmd = app.lua()
function do_lua_files ()
for _,f in ipairs(dir.getfiles('.','*.lua')) do
print(cmd..' '..f)
local res = utils.execute(cmd..' '..f)
if not res then
print ('process failed with non-zero result: '..f)
os.exit(1)
end
end
end
if #arg == 0 then arg[1] = 'tests'; arg[2] = 'examples' end
for _,dir in ipairs(arg) do
print('directory',dir)
lfs.chdir(dir)
do_lua_files()
lfs.chdir('..')
end
Jump to Line
Something went wrong with that request. Please try again.