Files
EscapistsReintroduced/docs/evidence/hq-search-radius-2026-10-03/validation/integrate.py
T
jakub 6a667d8deb Capture current mission, AI, map and administration development
Include the current addon, terrain integrations, tools, regression tests and recorded development evidence.
2026-10-13 22:52:53 +02:00

13 lines
589 B
Python

from pathlib import Path
import hashlib,json
R=Path('/home/jakub/devel/escapistsrereintroduced');P=Path('/tmp/erri-search-radius-1611')
m=json.loads((P/'source-manifest.json').read_text())
sha=lambda p:hashlib.sha256(p.read_bytes()).hexdigest()
for name,v in m['files'].items():
assert sha(R/name)==v['baseline_sha256'], name
assert sha(P/name)==v['proposal_sha256'], name
for name in m['files']:
(R/name).write_bytes((P/name).read_bytes())
for name,v in m['files'].items():assert sha(R/name)==v['proposal_sha256'],name
print('Installed exactly seven reviewed files; hashes verified.')