JD2022-TU1/main/extern/gear4/buildfolder/generation/test.lua

23 lines
459 B
Lua

require "test_itertools"
require "test_functools"
require "test_utils"
require "test_gear4"
function runtests()
local total = 0
local tests = {}
for k,v in pairs(_G) do
if k:sub(1, 5) == "test_" then
table.insert(tests, k)
end
end
table.sort(tests)
for k,t in pairs(tests) do
printf("Running %s", t)
io.flush()
_G[t]()
end
printf("%d tests run.", table.getn(tests))
os.exit(0)
end
runtests()