32 lines
1.2 KiB
Bash
Executable File
32 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
# Phase 5 harness: native parity, site static audit, and native perf baseline.
|
|
# Run on k-uce from repo root.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/../.."
|
|
|
|
OUT=/tmp/uce/wasm-phase5
|
|
mkdir -p "$OUT"
|
|
|
|
python3 tests/run_network_tests.py --include-internal --json-report "$OUT/native-network.json"
|
|
python3 tests/run_network_tests.py --include-internal --match starter --json-report "$OUT/native-starter.json"
|
|
python3 spikes/wasm-phase5/audit_site_statics.py
|
|
python3 spikes/wasm-phase5/benchmark.py --out-dir "$OUT"
|
|
|
|
python3 - <<'PY'
|
|
import json
|
|
from pathlib import Path
|
|
out = Path('/tmp/uce/wasm-phase5')
|
|
network = json.loads((out / 'native-network.json').read_text())
|
|
starter = json.loads((out / 'native-starter.json').read_text())
|
|
bench = json.loads((out / 'benchmark.json').read_text())
|
|
failures = [r for r in network if not r['ok']] + [r for r in starter if not r['ok']] + [r for r in bench if not r['ok']]
|
|
if failures:
|
|
print('PHASE5 HARNESS: FAIL')
|
|
for failure in failures:
|
|
print(failure)
|
|
raise SystemExit(1)
|
|
print('PHASE5 HARNESS: PASS')
|
|
print(f"network_cases={len(network)} starter_cases={len(starter)} benchmarks={len(bench)}")
|
|
print(f"reports={out}")
|
|
PY
|