File size: 1,668 Bytes
db06ffa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
PYTHON ?= python3.11

.PHONY: help test regression space-check parsers preflight preflight-full benchmark space-smoke space-smoke-strict clean

help:
	@echo "Targets:"
	@echo "  test               - run the full unittest discover suite"
	@echo "  regression         - run the regression fixture snapshot suite"
	@echo "  space-check        - run the HF Space readiness check"
	@echo "  parsers            - print the parser registry"
	@echo "  preflight          - run test + regression + space-check + parsers"
	@echo "  preflight-full     - preflight + an end-to-end benchmark smoke"
	@echo "  benchmark          - run zsgdp benchmark against tests/regression/fixtures"
	@echo "  space-smoke        - run docs/space_smoke.md smokes (deps-permitting)"
	@echo "  space-smoke-strict - same, but treat skipped smokes as failures"
	@echo "  clean              - remove __pycache__ and benchmark output"

test:
	$(PYTHON) -m unittest discover

regression:
	$(PYTHON) -m unittest tests.regression.test_regression -v

space-check:
	$(PYTHON) -m zsgdp.cli space-check --root .

parsers:
	$(PYTHON) -m zsgdp.cli parsers

preflight:
	$(PYTHON) -m zsgdp.cli preflight --root .

preflight-full:
	$(PYTHON) -m zsgdp.cli preflight --root . --benchmark

benchmark:
	$(PYTHON) -m zsgdp.cli benchmark \
	  --input tests/regression/fixtures \
	  --output out/preflight_benchmark

space-smoke:
	$(PYTHON) -m scripts.run_space_smoke --output out/space_smoke_report.json

space-smoke-strict:
	$(PYTHON) -m scripts.run_space_smoke --strict --output out/space_smoke_report.json

clean:
	find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
	rm -rf out/preflight_benchmark