Просмотр исходного кода

fix(tooling): archive retired v1 test files and update obsolete generator reference

codex 2 месяцев назад
Родитель
Сommit
da9d68eaf8

+ 23 - 22
pyproject.toml

@@ -1,22 +1,23 @@
-[tool.pytest.ini_options]
-testpaths = [
-    "tests/unit",
-    "tests/board_viewer",
-    "tests/test_project_structure.py",
-]
-norecursedirs = [
-    "reference",
-    "historical",
-    "tmp",
-    "dist",
-    "td",
-    "td/build",
-    "runs",
-    "tests/cocotb",
-    "tests/sim",
-    "tests/formal",
-    "tests/fixtures",
-]
-python_files = "test_*.py"
-python_classes = "*Tests"
-python_functions = "test_*"
+[tool.pytest.ini_options]
+testpaths = [
+    "tests/unit",
+    "tests/board_viewer",
+    "tests/test_project_structure.py",
+]
+norecursedirs = [
+    "reference",
+    "historical",
+    "tests/historical",
+    "tmp",
+    "dist",
+    "td",
+    "td/build",
+    "runs",
+    "tests/cocotb",
+    "tests/sim",
+    "tests/formal",
+    "tests/fixtures",
+]
+python_files = "test_*.py"
+python_classes = "*Tests"
+python_functions = "test_*"

tests/unit/test_6400_v1_contract.py → tests/historical/test_6400_v1_contract.py


tests/unit/test_6400_v1_source_closure.py → tests/historical/test_6400_v1_source_closure.py


tests/unit/test_encode_6400_hex.py → tests/historical/test_encode_6400_hex.py


+ 1 - 1
tools/package_6400_canonical.py

@@ -209,7 +209,7 @@ def common_payload(profile: str, commit: str, tree: str, selected: dict[str, byt
         "3. Overlay: `python3 tools/overlay_6400_packages.py --base <Base.zip> "
         "--current <Current.zip> --output <空目录>`。\n"
         "4. Overlay 后运行 `PYTHONPATH=. python3 tools/doctor_linux.py`、"
-        "`python3 tools/generate_6400_v1.py --check` 和聚焦测试。\n"
+        "`python3 tools/generate_6400_manual.py --check` 和聚焦测试。\n"
         "5. Analysis 包用于源码重放;Delivery 包才携带 BIT/离线 GUI。\n\n"
         "硬件、COM、JTAG、刷机均未运行;不得把分析证据当作真机验收。\n"
     ).encode()

+ 3 - 3
tools/run_6400_v1.py

@@ -109,9 +109,9 @@ def pwm_acceptance() -> None:
 def unit() -> None:
     run([
         sys.executable, "-B", "-m", "pytest", "-p", "no:cacheprovider", "-q",
-        "tests/unit/test_6400_v1_contract.py",
-        "tests/unit/test_6400_v1_source_closure.py",
-        "tests/unit/test_encode_6400_hex.py",
+        "tests/historical/test_6400_v1_contract.py",
+        "tests/historical/test_6400_v1_source_closure.py",
+        "tests/historical/test_encode_6400_hex.py",
         "tests/unit/test_fw_6400_v1_entrypoint.py",
         "tests/unit/test_6400_hex_gui_v2.py",
     ])