This repository has been archived on 2026-09-16. You can view files and clone it, but cannot push or open issues or pull requests.
win-diagnostics-analysis/Makefile

17 lines
678 B
Makefile

.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