.PHONY: help analyse validate test check
INPUT ?= examples/diagnostic.json

help:
	@echo 'make analyse INPUT=... EVIDENCE_ROOT=... OUTPUT=... REFERENCE_TIME=...'
	@echo 'make validate INPUT=... EVIDENCE_ROOT=...'
	@echo 'make test'
analyse:
	bash tools/analyse.sh "$(INPUT)" --evidence-root "$(EVIDENCE_ROOT)" --output "$(OUTPUT)" --reference-time "$(REFERENCE_TIME)" --producer-version "$$(git rev-parse HEAD)"
validate:
	bash tools/validate.sh "$(INPUT)" --evidence-root "$(EVIDENCE_ROOT)"
test:
	uv venv --python 3.11 --allow-existing .venv
	uv pip sync --python .venv/bin/python requirements.txt
	.venv/bin/python -m unittest discover -s tests -p 'test_*.py' -v
check: test
