Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

Add smoke-test.sh for CI binary validation

Martin Vogel5b25f885d755
diff --git a/scripts/smoke-test.sh b/scripts/smoke-test.sh
new file mode 100755
index 000000000..3f4e61ba2
--- /dev/null
+++ b/scripts/smoke-test.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Smoke test: verify the binary starts and reports its version.
+BINARY="${1:?usage: smoke-test.sh <binary-path>}"
+
+echo "=== smoke-test: --version ==="
+OUTPUT=$("$BINARY" --version 2>&1)
+echo "$OUTPUT"
+
+if echo "$OUTPUT" | grep -qE 'v?[0-9]+\.[0-9]+|dev'; then
+ echo "OK: version output looks valid"
+else
+ echo "FAIL: unexpected version output"
+ exit 1
+fi
+
+echo "=== smoke-test: passed ==="