-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify_quickstart.py
More file actions
34 lines (25 loc) · 877 Bytes
/
Copy pathverify_quickstart.py
File metadata and controls
34 lines (25 loc) · 877 Bytes
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
#!/usr/bin/env python3
from __future__ import annotations
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
QUICKSTART = ROOT / "docs/tier0/QUICKSTART.md"
def expect(condition: bool, message: str) -> None:
if not condition:
raise SystemExit(f"FAIL: {message}")
print(f"PASS: {message}")
def main() -> int:
expect(QUICKSTART.is_file(), "quickstart exists")
text = QUICKSTART.read_text(encoding="utf-8")
for phrase in [
"run_tier0_pipeline.py",
"verify_tier0_stack.py",
"verify_artifact_checksums.py",
"graph-export-bundle.json",
"csv-export-manifest.json",
"sample-queries.json",
]:
expect(phrase in text, f"quickstart contains '{phrase}'")
print("PASS: quickstart verification completed")
return 0
if __name__ == "__main__":
raise SystemExit(main())