60 lines
2.0 KiB
Makefile
60 lines
2.0 KiB
Makefile
PYTHON ?= python3
|
|
PROJECT_PYTHONPATH := src:.
|
|
SMOKE_DIR := artifacts/local-smoke
|
|
RESEARCH_DIR := artifacts/research-smoke
|
|
PARITY_REPORT := artifacts/mock-parity/report.json
|
|
|
|
.PHONY: test architecture standard bundle smoke verify research research-verify parity parity-verify doctor secret-scan status status-check notebook-check notebook-smoke local
|
|
|
|
test:
|
|
PYTHONPATH=$(PROJECT_PYTHONPATH) $(PYTHON) -m unittest discover -s tests -p '*.py' -q
|
|
|
|
architecture:
|
|
PYTHONPATH=$(PROJECT_PYTHONPATH) $(PYTHON) -m quant_os architecture check
|
|
|
|
standard:
|
|
PYTHONPATH=$(PROJECT_PYTHONPATH) $(PYTHON) -m quant_os standard validate
|
|
PYTHONPATH=$(PROJECT_PYTHONPATH) $(PYTHON) -m quant_os standard evaluate
|
|
|
|
bundle:
|
|
$(PYTHON) tools/bundle_platforms.py
|
|
|
|
smoke:
|
|
PYTHONPATH=$(PROJECT_PYTHONPATH) $(PYTHON) -m quant60 smoke --config configs/baseline.json --output $(SMOKE_DIR)
|
|
|
|
verify:
|
|
PYTHONPATH=$(PROJECT_PYTHONPATH) $(PYTHON) -m quant60 verify-manifest $(SMOKE_DIR)/manifest.json
|
|
|
|
research:
|
|
PYTHONPATH=$(PROJECT_PYTHONPATH) $(PYTHON) -m quant60 research-smoke --output $(RESEARCH_DIR)
|
|
|
|
research-verify:
|
|
PYTHONPATH=$(PROJECT_PYTHONPATH) $(PYTHON) -m quant60 verify-research-manifest $(RESEARCH_DIR)/manifest.json
|
|
|
|
parity:
|
|
PYTHONPATH=$(PROJECT_PYTHONPATH) $(PYTHON) tools/export_mock_parity.py export --output $(PARITY_REPORT)
|
|
|
|
parity-verify:
|
|
PYTHONPATH=$(PROJECT_PYTHONPATH) $(PYTHON) tools/export_mock_parity.py verify $(PARITY_REPORT)
|
|
|
|
doctor:
|
|
PYTHONPATH=$(PROJECT_PYTHONPATH) $(PYTHON) -m quant_os doctor
|
|
PYTHONPATH=$(PROJECT_PYTHONPATH) $(PYTHON) tools/capability_probe.py
|
|
|
|
secret-scan:
|
|
$(PYTHON) tools/check_tracked_secrets.py
|
|
|
|
status:
|
|
$(PYTHON) tools/build_public_status.py
|
|
|
|
status-check:
|
|
$(PYTHON) tools/build_public_status.py --check
|
|
|
|
notebook-check:
|
|
$(PYTHON) tools/run_colab_notebook.py notebooks/quant_os_colab.ipynb
|
|
|
|
notebook-smoke:
|
|
$(PYTHON) tools/run_colab_notebook.py notebooks/quant_os_colab.ipynb --execute
|
|
|
|
local: architecture standard test bundle smoke verify research research-verify parity parity-verify doctor secret-scan status-check notebook-check notebook-smoke
|