14 lines
415 B
Bash
Executable File
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
|