Files
cosma-log-analyzer/examples/run_on_fake.sh
2026-04-19 15:20:10 +00:00

14 lines
415 B
Bash
Executable File

#!/usr/bin/env bash
# End-to-end demo: generate a synthetic MCAP, run the analyzer on it,
# pipe stdout anomalies to the console (NATS fallback mode).
set -euo pipefail
ROOT=$(cd "$(dirname "$0")/.." && pwd)
cd "$ROOT"
OUT=$(mktemp -d)/demo.mcap
python3 tests/fixtures/generate_fake_mcap.py "$OUT"
echo "---- Running analyzer on $OUT ----"
NATS_URL="" cosma-log-analyzer ingest "$OUT" --subject AUV206 --dry-run