chore: merge amiberry and hatari re-profile

# Conflicts:
#	README.md
#	emulators/amiberry.yml
#	install/batocera.json
#	install/emudeck.json
#	install/lakka.json
#	install/recalbox.json
#	install/retroarch.json
#	install/retrobat.json
#	install/retrodeck.json
#	install/rocknix.json
This commit is contained in:
Abdessamad Derraz committed 2026-10-21 06:21:30 +02:00
commit 85a44d9bf7
22 files changed
+670 -938

No files matched your search

+2 -2
View File
@@ -2295,8 +2295,8 @@ class ThePowerShellWrapperPassesTheStatusOn(unittest.TestCase):
class ThePowerShellWrapperPassesEveryArgument(unittest.TestCase):
"""A [Parameter()] attribute made install.ps1 an advanced script, whose
common parameters took -v (as -Verbose), -vb, -d and -ea: the documented
`-v` never reached install.py."""
common parameters took `-v` (read as `-Verbose`), `-vb`, `-d` and `-ea`:
the documented `-v` never reached install.py."""
@unittest.skipUnless(shutil.which("pwsh"), "needs PowerShell")
def test_short_flags_reach_the_installer(self):
+25
View File
@@ -1545,6 +1545,31 @@ class TestBuildReport(unittest.TestCase):
report = build_report("mame", profile, self.dir)
self.assertEqual(report.entries[0].status, "ANCHORED")
def test_self_check_reads_every_repository_before_calling_a_range_gone(self):
# hatari: the port's src/paths.c runs 365 lines, the upstream's 345,
# and a source_ref attributes the path to the upstream. With both on
# HEAD, prose citing the port's 305-356 was read in the upstream file
# alone and reported beyond its end.
self.files[("porthead", "src/p.c")] = [f"port {i}" for i in range(8)]
self.files[("uphead", "src/p.c")] = ["a", "load x.bin", "c", "d", "e"]
heads = {"o/port": "porthead", "o/up": "uphead"}
profile_sync.upstream.resolve_head = (
lambda repo, cache, offline=False, branch=None: heads[repo.slug]
)
profile = {
"emulator": "Port",
"source": "https://github.com/o/port",
"upstream": "https://github.com/o/up",
"source_commit": "porthead",
"upstream_commit": "uphead",
"notes": "The port reads its own file (src/p.c:4-7).",
"files": [{"name": "x.bin", "source_ref": "upstream src/p.c:2"}],
}
report = build_report("port", profile, self.dir)
prose = next(e for e in report.entries if e.kind == "prose")
self.assertNotEqual(prose.parts[0].status, "GONE")
self.assertEqual(report.needs_review(), 0)
def test_an_emptied_upstream_does_not_hide_the_ports_change(self):
# dosbox-pure moved to Codeberg and emptied its GitHub repository.
# The rename search run for that repository picked up the port's