mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-25 15:01:11 +02:00
1905261c5b
CLOSES #1483, CLOSES #1610, CLOSES #1615, CLOSES #1646, CLOSES #1649, CLOSES #1651, CLOSES #1653, CLOSES #1656, CLOSES #1683, CLOSES #1685, CLOSES #1686, CLOSES #1687, CLOSES #1688, CLOSES #1689, CLOSES #1690, CLOSES #1693, CLOSES #1694, CLOSES #1695, CLOSES #1696, CLOSES #1702, CLOSES #1704, CLOSES #1705, CLOSES #1706, CLOSES #1707, CLOSES #1708, CLOSES #1710, CLOSES #1711, CLOSES #1712, CLOSES #1713, CLOSES #1716, CLOSES #1717, CLOSES #1718, CLOSES #1719, CLOSES #1720, CLOSES #1721, CLOSES #1725, CLOSES #1732, CLOSES #1745, CLOSES #1748, CLOSES #1749, CLOSES #1751, CLOSES #1754
84 lines
3.4 KiB
Lua
84 lines
3.4 KiB
Lua
-- Content gate for Switch transfer runbooks (XFER-01..08).
|
|
-- Self-contained: luajit tests/switch_transfer_docs_test.lua
|
|
|
|
local T = require("tests.harness")
|
|
local check = T.check
|
|
|
|
local function read(path)
|
|
local f, err = io.open(path, "r")
|
|
if not f then error("cannot read " .. path .. ": " .. tostring(err)) end
|
|
local s = f:read("*a")
|
|
f:close()
|
|
return s
|
|
end
|
|
|
|
local function mustContain(body, needle, label)
|
|
check(body:find(needle, 1, true) ~= nil,
|
|
label .. " must contain " .. string.format("%q", needle))
|
|
end
|
|
|
|
local function mustNotContain(body, needle, label)
|
|
check(body:find(needle, 1, true) == nil,
|
|
label .. " must not contain " .. string.format("%q", needle))
|
|
end
|
|
|
|
local transfer = read("docs/switch-transfer.md")
|
|
|
|
mustContain(transfer, "MTP", "transfer")
|
|
mustContain(transfer, "Hekate UMS", "transfer")
|
|
mustContain(transfer, "FTP", "transfer")
|
|
mustContain(transfer, "sdmc:/switch/gen1recomp/", "transfer")
|
|
mustContain(transfer, "imports/", "transfer")
|
|
mustContain(transfer, "imports/mods/", "transfer")
|
|
mustContain(transfer, "gold", "transfer")
|
|
mustContain(transfer, "1: SD Card", "transfer")
|
|
mustContain(transfer, "Scan again", "transfer")
|
|
mustContain(transfer, "documented example", "transfer")
|
|
mustContain(transfer, "Linux", "transfer")
|
|
mustContain(transfer, "Windows", "transfer")
|
|
mustContain(transfer, "macOS", "transfer")
|
|
mustContain(transfer, "title override", "transfer")
|
|
mustContain(transfer, "Applet Mode", "transfer")
|
|
mustContain(transfer, "Exit MTP", "transfer")
|
|
mustContain(transfer, "nxlink", "transfer")
|
|
mustContain(transfer, "deferred", "transfer")
|
|
mustContain(transfer, "gvfs-mtp", "transfer")
|
|
mustContain(transfer, "Portable Devices", "transfer")
|
|
mustContain(transfer, "MTP USB Device", "transfer")
|
|
mustContain(transfer, "AppleDouble", "transfer")
|
|
mustContain(transfer, "card reader", "transfer")
|
|
mustContain(transfer, "Transfer methods", "transfer")
|
|
mustContain(transfer, "OpenMTP", "transfer")
|
|
mustContain(transfer, "only one", "transfer")
|
|
mustContain(transfer, "USB-C", "transfer")
|
|
-- Per-OS SD/FTP fallback when MTP is flaky (XFER-05 AC)
|
|
mustContain(transfer, "If MTP is unavailable or flaky on Linux", "transfer")
|
|
mustContain(transfer, "If MTP is unavailable or flaky on Windows", "transfer")
|
|
mustContain(transfer, "Joy-Con display chords (stock engine)", "transfer")
|
|
mustNotContain(transfer, "switch-development", "transfer")
|
|
mustNotContain(transfer, "switch-hardware-evidence", "transfer")
|
|
|
|
local install = read("docs/switch-install.md")
|
|
local build = read("docs/switch-build.md")
|
|
mustContain(install, "switch-transfer.md", "install")
|
|
mustContain(install, "## Community mods", "install")
|
|
mustContain(install, "Select + **A**", "install")
|
|
mustContain(install, "Select + **L**", "install")
|
|
mustContain(install, "COLORS", "install")
|
|
mustContain(install, "TILT", "install")
|
|
mustContain(install, "PERFORMANCE", "install")
|
|
mustContain(install, "Stock engine effect", "install")
|
|
mustContain(install, "## Limitations", "install")
|
|
mustContain(install, "Launch with title override", "install")
|
|
mustContain(install, "Gold", "install")
|
|
mustContain(install, "imports/saves/gold/", "install")
|
|
mustContain(install, "exports/gold/", "install")
|
|
mustNotContain(install, "VoxelMod", "install")
|
|
mustNotContain(install, "switch-development", "install")
|
|
mustContain(build, "switch-transfer.md", "build")
|
|
mustContain(build, "nxlink", "build")
|
|
mustNotContain(build, "switch-development", "build")
|
|
mustNotContain(build, "switch-hardware-evidence", "build")
|
|
|
|
T.finish("switch_transfer_docs_test")
|