# SPDX-License-Identifier: MIT """Rung 1: SingleStepTests ARM7TDMI (tests/sst_runner.py; a detector: the corpus is NBA-derived). The quick run takes the first 300 cases of every file; ``-m slow`` runs all 2.25 M (scripts/sst_gate.py runs them in parallel in seconds). Excluded classes are skipped and counted, never passed. """ from __future__ import annotations import pytest from tests.sst_runner import CORPUS, corpus_files, run_file pytestmark = pytest.mark.skipif(not CORPUS.exists(), reason="run scripts/fetch_references.py") FILES = corpus_files() if CORPUS.exists() else [] @pytest.mark.parametrize("path", FILES, ids=lambda p: p.name.removesuffix(".json.bin")) def test_corpus_sample(path): result = run_file(path, limit=300) assert result.failed == 0, result.examples @pytest.mark.slow @pytest.mark.parametrize("path", FILES, ids=lambda p: p.name.removesuffix(".json.bin")) def test_corpus_full(path): result = run_file(path) assert result.failed == 0, result.examples