-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
85 lines (62 loc) · 3.31 KB
/
Copy pathMakefile
File metadata and controls
85 lines (62 loc) · 3.31 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.PHONY: test-verify-ui test-legacy-anchor-compatibility test-bounded-execution test-corrected-content eval verify-fixtures validate-contracts test-contract-schema-validation test-parser-edge-cases check-guide-artifacts check-version-sync test-fetch-safety test-hosted-anchors test-hosted-api test-fetch-replay test-cli-contract test-scanner test release-archive conformance-kit
VERSION := $(shell python3 -c "import sys; sys.path.insert(0, 'scripts'); from guidecheck_constants import GUIDECHECK_VERSION; print(GUIDECHECK_VERSION)")
.PHONY: test-package-consumer test-posix-cli-contract
test-package-consumer:
python3 scripts/test_package_consumer.py
eval:
python3 scripts/eval_guidecheck.py
verify-fixtures:
python3 scripts/check_reference_verifier.py
validate-contracts:
python3 scripts/validate_contracts.py
test-contract-schema-validation:
python3 scripts/test_contract_schema_validation.py
test-parser-edge-cases:
python3 scripts/test_parser_edge_cases.py
check-guide-artifacts:
python3 scripts/check_guide_artifacts.py
check-version-sync:
python3 scripts/check_version_sync.py
test-fetch-safety:
python3 scripts/test_fetch_safety.py
test-hosted-anchors:
python3 scripts/test_hosted_anchors.py
test-hosted-api:
python3 scripts/test_hosted_api.py
test-fetch-replay:
python3 scripts/test_fetch_replay.py
test-cli-contract:
python3 scripts/test_cli_contract.py
test-posix-cli-contract:
python3 scripts/test_posix_cli_contract.py
test-scanner:
python3 scripts/test_scanner.py
test-bounded-execution:
python3 scripts/test_bounded_execution.py
test-corrected-content:
python3 scripts/test_corrected_content.py
test-legacy-anchor-compatibility:
python3 scripts/test_legacy_anchor_compatibility.py
python3 scripts/test_dispatch_compatibility.py
python3 scripts/test_strict_compatibility.py
python3 scripts/test_profile_dispatch.py
# Keep the established Python-only test entry point usable without Node.
test-verify-ui:
node scripts/test_verify_ui.mjs
test: test-legacy-anchor-compatibility test-bounded-execution test-corrected-content eval verify-fixtures validate-contracts test-contract-schema-validation test-parser-edge-cases check-guide-artifacts check-version-sync test-fetch-safety test-hosted-anchors test-hosted-api test-fetch-replay test-cli-contract test-posix-cli-contract test-scanner
# Full source archive for a GitHub release, matching prior build/ layout.
release-archive:
mkdir -p build
git archive --format=tar.gz --prefix=guidecheck-$(VERSION)/ -o build/guidecheck-$(VERSION).tar.gz HEAD
git archive --format=zip --prefix=guidecheck-$(VERSION)/ -o build/guidecheck-$(VERSION).zip HEAD
cd build && shasum -a 256 guidecheck-$(VERSION).tar.gz guidecheck-$(VERSION).zip > guidecheck-$(VERSION).SHA256SUMS
cat build/guidecheck-$(VERSION).SHA256SUMS
# Standalone conformance kit: the fixture corpus and schemas an independent
# verifier implementation targets, pinned to one profile version.
conformance-kit:
mkdir -p build
git archive --format=tar.gz --prefix=guidecheck-conformance-kit-$(VERSION)/ \
-o build/guidecheck-conformance-kit-$(VERSION).tar.gz HEAD \
fixtures schemas profiles finding-ids.md verifier-conformance.md CHANGELOG.md
cd build && shasum -a 256 guidecheck-conformance-kit-$(VERSION).tar.gz > guidecheck-conformance-kit-$(VERSION).SHA256SUMS
cat build/guidecheck-conformance-kit-$(VERSION).SHA256SUMS