mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-22 17:30:49 +08:00
Add smoke-test.sh for CI binary validation
This commit is contained in:
Executable
+18
@@ -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 ==="
|
||||
Reference in New Issue
Block a user