mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-03 14:58:51 -06:00
refactor: move the probe inputs out of tests/
content.yml, oracle.yml, pack_content.yml and observations.yml are read by core_probe, the probes and the site build: they are inputs, not fixtures. measurements/ holds append-only <emulator>.jsonl records only, so they move to campaign/ at the root.
This commit is contained in:
1 parent
f9826e90cc
commit
5f354c8faf
20 files changed
+30
-28
No files matched your search
@@ -26,7 +26,7 @@ if TYPE_CHECKING:
|
||||
from typing_extensions import Unpack
|
||||
|
||||
|
||||
CONTENT_FILE = REPO_ROOT / "tests" / "campaign" / "content.yml"
|
||||
CONTENT_FILE = REPO_ROOT / "campaign" / "content.yml"
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ from resolve.standalone import platform_launches
|
||||
from resolve.entryscope import filter_files_by_mode
|
||||
|
||||
|
||||
PACK_CONTENT_FILE = REPO_ROOT / "tests" / "campaign" / "pack_content.yml"
|
||||
PACK_CONTENT_FILE = REPO_ROOT / "campaign" / "pack_content.yml"
|
||||
|
||||
|
||||
MAX_ROUNDS = 6
|
||||
|
||||
@@ -278,7 +278,7 @@ def collect(root: Path = REPO_ROOT, stored_records: list | None = None) -> list[
|
||||
from model.measurements import live, read_records
|
||||
|
||||
content: dict[str, list[tuple[str, Content]]] = {}
|
||||
for system, items in load_content(root / "tests" / "campaign" / "content.yml").items():
|
||||
for system, items in load_content(root / "campaign" / "content.yml").items():
|
||||
for item in items:
|
||||
content.setdefault(item.name, []).append((system, item))
|
||||
profiles = load_emulator_profiles(str(root / "emulators"))
|
||||
|
||||
@@ -126,7 +126,7 @@ def run_variant(args: argparse.Namespace, emu: Emulator, tree: Path, oracle: dic
|
||||
|
||||
|
||||
def emulator_oracle(emu: Emulator, path: Path, content_sha1: str) -> dict:
|
||||
"""The oracle core_probe reads (tests/campaign/oracle.yml), looked up by
|
||||
"""The oracle core_probe reads (campaign/oracle.yml), looked up by
|
||||
the content's sha1 and the emulator's name, with the emulator's own
|
||||
error strings added as patterns. Without the file the oracle names the
|
||||
module that holds every pattern."""
|
||||
|
||||
Reference in new issue
Block a user