effil/tests/lua/run_tests.lua
Ilia Udalov 10e7bd7131 lua test fixes
effil as lua library
2017-03-10 16:33:14 +03:00

30 lines
602 B
Lua
Executable File

#!/usr/bin/env lua
-- TODO: remove hardcode
package.path = package.path .. ";../libs/luaunit/?.lua;../tests/lua/?.lua"
do
-- Hack input arguments to make tests verbose by default
local found = false
for _, v in ipairs(arg) do
if v == '-o' or v == '--output' then
found = true
break
end
end
if not found then
table.insert(arg, '-o')
table.insert(arg, 'TAP')
end
end
-----------
-- TESTS --
-----------
test = require "luaunit"
require 'test_utils'
require 'thread'
require 'shared_table'
os.exit( test.LuaUnit.run() )