diff --git a/tools/master_data_tests.txt b/tools/master_data_tests.txt new file mode 100644 index 000000000..2af201aca --- /dev/null +++ b/tools/master_data_tests.txt @@ -0,0 +1,8 @@ +# 마스터 자료(resources/master_data/**.json)를 고치면 핵심 넷(sync_core_tests.txt)과 함께 도는 시험 — 한 줄 = 시험 파일 +# 자료 json 은 이름이 시험 글에 안 나와 이름 찾기로 안 걸림 · M01 자료를 통째로 읽어 셈 · 지문 · 건수를 보는 시험 +resources/tester/test_791_1_engine_semantics.py +resources/tester/test_713_3_list.py +resources/tester/test_794_2b_edition.py +resources/tester/test_801_3_groups.py +resources/tester/test_855_engine_parity.py +resources/tester/test_855_golden.py diff --git a/tools/related_tests.py b/tools/related_tests.py index eccd9167f..0987c6833 100644 --- a/tools/related_tests.py +++ b/tools/related_tests.py @@ -40,10 +40,14 @@ def related(files: list[str]) -> list[str]: if h.is_file() and any(s in h.read_text(encoding="utf-8", errors="replace") for s in stems): stems.add(h.stem) hit = set(own) - # 마스터 자료(json)는 이름이 시험 글에 안 나옴 → 싱크 관문 핵심 시험으로 - if any(f.replace("\\", "/").startswith("resources/master_data/") and f.endswith(".json") for f in files): - core = (ROOT / "tools" / "sync_core_tests.txt").read_text(encoding="utf-8").split() - hit |= {pathlib.PurePosixPath(c).name for c in core if c.endswith(".py")} + # 마스터 자료(json)는 이름이 시험 글에 안 나옴 → 싱크 관문 핵심 시험 + 자료 시험 목록으로 + if any( + f.replace("\\", "/").startswith("resources/master_data/") and f.endswith(".json") + for f in files + ): + for name in ("sync_core_tests.txt", "master_data_tests.txt"): + listed = (ROOT / "tools" / name).read_text(encoding="utf-8").split() + hit |= {pathlib.PurePosixPath(c).name for c in listed if c.endswith(".py")} for t in sorted(TESTS.glob("test_*.py")): if t.name in hit: continue