mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-23 15:53:00 +00:00
20 lines
No EOL
355 B
Lua
20 lines
No EOL
355 B
Lua
-- Test registry
|
|
local test_id_paths = {
|
|
"credits.test.lua",
|
|
"notify.test.lua",
|
|
-- "stacktrace.test.lua",
|
|
}
|
|
|
|
-- Helper functions
|
|
local update = function(a,k,v) a[k] = v end
|
|
|
|
-- Test loader
|
|
local test_loader = function (path)
|
|
local ret = {}
|
|
for _, v in ipairs(test_id_paths) do
|
|
update(ret, dofile(path .. v))
|
|
end
|
|
return ret
|
|
end
|
|
|
|
return test_loader |