fix: prove launcher records against run profiles

This commit is contained in:
Abdessamad Derraz committed 2026-11-21 21:42:19 +01:00
1 parent e36516f3b0
commit 1839916ca2
35 files changed
+179 -160

No files matched your search

+6 -6
View File
@@ -89,16 +89,16 @@ class CoreChoice(unittest.TestCase):
def test_standalone_only_is_not_run_as_a_core(self) -> None:
both = {"type": "standalone + libretro", "cores": ["duckstation", "duckstation-sa"]}
self.assertTrue(packprobe.libretro_build_runs("duckstation", both, {}))
self.assertFalse(packprobe.libretro_build_runs("duckstation", both, {"standalone_cores": ["duckstation"]}))
self.assertTrue(packprobe.libretro_build_runs("duckstation", both, {}, {}))
self.assertFalse(packprobe.libretro_build_runs("duckstation", both, {"standalone_cores": ["duckstation"]}, {}))
self.assertTrue(packprobe.libretro_build_runs("duckstation", both, {
"standalone_cores": ["duckstation"], "dual_mode_cores": ["duckstation-sa"]}))
"standalone_cores": ["duckstation"], "dual_mode_cores": ["duckstation-sa"]}, {}))
# A buildbot core installable under the standalone name is its
# libretro build, run both ways (standalone_set).
self.assertTrue(packprobe.libretro_build_runs("duckstation", both, {
"standalone_cores": ["duckstation"], "installable_cores": ["duckstation"]}))
self.assertFalse(packprobe.libretro_build_runs("x", {"type": "standalone"}, {}))
self.assertFalse(packprobe.libretro_build_runs("x", {"type": "alias"}, {}))
"standalone_cores": ["duckstation"], "installable_cores": ["duckstation"]}, {}))
self.assertFalse(packprobe.libretro_build_runs("x", {"type": "standalone"}, {}, {}))
self.assertFalse(packprobe.libretro_build_runs("x", {"type": "alias"}, {}, {}))
def test_buildbot_name(self) -> None:
buildbot = {"mednafen_psx", "mednafen_psx_hw", "kronos"}