test_6400_closure_separation.py 704 B

123456789101112131415
  1. from __future__ import annotations
  2. from tools.check_6400_closures import build_receipt
  3. def test_production_and_analysis_closures_are_complete_and_separate() -> None:
  4. receipt = build_receipt()
  5. production = receipt["production_source_closure"]["files"]
  6. analysis = receipt["analysis_replay_closure"]["files"]
  7. assert "src/top/prod2u_6400_rs232_only_top.v" in production
  8. assert "tools/target_registry.py" in analysis
  9. assert "tools/package_target.py" in analysis
  10. assert "tools/target_registry.py" not in production
  11. assert "tests/cocotb/test_6400_pi_differential.py" not in production
  12. assert all(len(digest) == 64 for digest in [*production.values(), *analysis.values()])