mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-29 15:17:20 -05:00
chore: merge the remaining platform core profiles
This commit is contained in:
commit
57cbff781a
22 files changed
+3326
-5
No files matched your search
@@ -5584,6 +5584,8 @@ class AHashScanLabelNamesNoOtherDump(unittest.TestCase):
|
||||
("swanstation", "ps1_rom.bin"):
|
||||
"the whole PS3 image is the file the PS3 itself names ps1_rom.bin, "
|
||||
"beetle_psx reads its first 512 KB under the same name",
|
||||
("duckstation-legacy", "ps1_rom.bin"):
|
||||
"the same whole PS3 image, whose first 512 KB src/core/bios.cpp:89 hashes",
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -2799,6 +2799,10 @@ class TestDeliberatelyFrozenPin(TestBuildReport):
|
||||
# coolbaremu_libretro. Both read the same .cbe archives, yet the two
|
||||
# profiles named two systems and two build types, so --system for
|
||||
# either missed the other core.
|
||||
# A frozen revision whose tree lacks a build the live one documents
|
||||
# keeps its own type: DuckStation 56ac3d6c has no libretro frontend
|
||||
# under src/, only duckstation-nogui and duckstation-qt.
|
||||
builds_differ = {("duckstation-legacy", "duckstation")}
|
||||
from common import load_emulator_profiles # noqa: PLC0415
|
||||
|
||||
root = Path(__file__).resolve().parents[1] / "emulators"
|
||||
@@ -2820,7 +2824,8 @@ class TestDeliberatelyFrozenPin(TestBuildReport):
|
||||
sorted(profiles[old].get("systems") or []),
|
||||
sorted(profiles[new].get("systems") or []),
|
||||
)
|
||||
self.assertEqual(profiles[old].get("type"), profiles[new].get("type"))
|
||||
if (old, new) not in builds_differ:
|
||||
self.assertEqual(profiles[old].get("type"), profiles[new].get("type"))
|
||||
self.assertGreaterEqual(pairs, 3)
|
||||
|
||||
def test_an_ordinary_profile_is_unaffected(self):
|
||||
@@ -4068,6 +4073,26 @@ class TestRealignProse(unittest.TestCase):
|
||||
messages = profile_sync.realign_prose(self.path, self.tmp.name, dry_run=True)
|
||||
self.assertTrue(any("unreadable" in m for m in messages), messages)
|
||||
|
||||
def test_a_deleted_namesake_is_not_the_profiles_history(self):
|
||||
"""mupen64plus.yml was renamed away in March, and a new standalone
|
||||
profile took the name in October. The deletion commit holds no file,
|
||||
so the older revisions were read as a gap and every note reported
|
||||
unreadable."""
|
||||
self._git("init", "-q")
|
||||
self._git("config", "user.email", "t@t")
|
||||
self._git("config", "user.name", "t")
|
||||
self._commit(
|
||||
PROSE_SAMPLE.replace('"pin"', '"older"').replace("a.c:10", "a.c:3"),
|
||||
"old profile",
|
||||
)
|
||||
self._git("rm", "-q", "p.yml")
|
||||
self._git("commit", "-m", "rename away")
|
||||
self._commit(PROSE_SAMPLE, "new profile")
|
||||
self.files[("pin", "a.c")] = ["x"] * 9 + ["subject"]
|
||||
self.assertEqual(
|
||||
profile_sync.realign_prose(self.path, self.tmp.name, dry_run=True), []
|
||||
)
|
||||
|
||||
def test_scalar_written_at_the_current_pin_is_left_alone(self):
|
||||
self._git("init", "-q")
|
||||
self._git("config", "user.email", "t@t")
|
||||
|
||||
Reference in new issue
Block a user