Add smoke-test.sh for CI binary validation

This commit is contained in:
Martin Vogel
2026-03-06 18:27:51 +01:00
parent 49f0655542
commit 548346b503
+18
View File
@@ -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 ==="