← back to Codex Yolo
scripts/smoke-test.sh
23 lines
#!/bin/bash
# Per-project smoke test. Returns 0 if healthy, non-zero otherwise.
set -u
PROJECT="${1:?project name}"
case "$PROJECT" in
debate-ring-viewer)
curl -sf --max-time 5 http://localhost:9730/api/runs >/dev/null && \
curl -sf --max-time 5 http://localhost:9730/ >/dev/null
;;
small-business-builder)
curl -sf --max-time 5 http://localhost:9760/healthz >/dev/null && \
curl -sf --max-time 5 http://localhost:9760/ >/dev/null
;;
animals)
curl -sf --max-time 8 http://localhost:9720/ >/dev/null
;;
*)
echo "[smoke] unknown project: $PROJECT" >&2
exit 2
;;
esac