mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-16 16:21:30 +02:00
api upgrades, windows dev tools, and android fixes (#299)
* pop up a fake save * add CI to dev branch * Make ROM-free test tiers actually run on Windows (#267) Suite discovery, the extension-point catalog scan, mod test-dir pickup, and the meta-coverage corpus all shelled out to ls/find/test -d, which do not exist in cmd.exe. Every listing came back empty on Windows, so tiers ran 0 suites and still reported ALL TESTS PASSED. Add portable probes to tests/fs_io.lua (same Unix commands on Linux/macOS; dir /b and a shell-free rename-self existence check on Windows) and rewire the four call sites to them. 15/15 engine suites and 2/2 modkit suites now genuinely run and pass on Windows. Fixes #266 Co-authored-by: johnjohto <johnjohto@users.noreply.github.com> * intro api upgrade (#294) * intro api upgrade * api updates * fix tests * updated templates * android fixes for mods and saves (#297) * Android SCALING fixes (#298) * android fixes for mods and saves * perhaps this is the true scaling android issue fix --------- Co-authored-by: johnjohto <johtoboy@atomicmail.io> Co-authored-by: johnjohto <johnjohto@users.noreply.github.com>
This commit is contained in:
@@ -63,13 +63,17 @@ end
|
||||
-- engine tier, the SDK cases, and any tests a shipped mod carries
|
||||
local function testCorpus()
|
||||
local files, bodies = {}, {}
|
||||
local pipe = io.popen(
|
||||
"ls tests/*.lua tests/engine/*.lua tests/modkit/cases/*.lua mods/*/tests/*.lua 2>/dev/null")
|
||||
if pipe then
|
||||
for line in pipe:lines() do
|
||||
if line ~= "" then files[#files + 1] = line end
|
||||
local FsIo = require("tests.fs_io")
|
||||
local function addLuaFrom(dir)
|
||||
for _, name in ipairs(FsIo.listDir(dir)) do
|
||||
if name:match("%.lua$") then files[#files + 1] = dir .. "/" .. name end
|
||||
end
|
||||
pipe:close()
|
||||
end
|
||||
addLuaFrom("tests")
|
||||
addLuaFrom("tests/engine")
|
||||
addLuaFrom("tests/modkit/cases")
|
||||
for _, mod in ipairs(FsIo.listDir("mods")) do
|
||||
if not mod:find(".", 1, true) then addLuaFrom("mods/" .. mod .. "/tests") end
|
||||
end
|
||||
for _, path in ipairs(files) do
|
||||
bodies[path] = slurp(path) or ""
|
||||
|
||||
Reference in New Issue
Block a user