mirror of
https://github.com/bryanthaboi/gen1recomp
synced 2026-10-02 15:50:39 -04:00
15 lines
549 B
Lua
15 lines
549 B
Lua
package.path = "./?.lua;./?/init.lua;" .. package.path
|
|
|
|
local Runner = require("tests.tier_runner")
|
|
local Groups = require("tests.save_compat._groups")
|
|
if not arg[1] then
|
|
Runner.main({ "tests/save_compat" }, "save_compat")
|
|
elseif arg[1] == "--group" and Groups.valid[arg[2]] and not arg[3] then
|
|
local group = arg[2]
|
|
Runner.main({ "tests/save_compat" }, "save_compat/" .. group,
|
|
function(path) return Groups.of(path) == group end)
|
|
else
|
|
io.stderr:write("usage: tests/run_save_compat.lua [--group codecs|records|world]\n")
|
|
os.exit(2)
|
|
end
|