chore(scripts): baseline-smoke 优先 debug、回落 release
- 只 build 过 release 时尺子也能跑(之前硬编码 debug 路径会误报"找不到探针") - CLAUDE.md 补上探针的构建命令
This commit is contained in:
1 parent
df63306b24
commit
16c0704c47
2 files changed
+6
-2
No files matched your search
@@ -26,8 +26,11 @@ ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
cd "$ROOT" || exit 1
|
||||
|
||||
PORT="${1:-30993}"
|
||||
# 优先 debug(开发期常用),回落到 release
|
||||
BIN="$ROOT/target/debug/ssw-platform"
|
||||
[ -x "$BIN" ] || BIN="$ROOT/target/release/ssw-platform"
|
||||
PROBE="$ROOT/target/debug/examples/probe"
|
||||
[ -x "$PROBE" ] || PROBE="$ROOT/target/release/examples/probe"
|
||||
|
||||
PASS=0
|
||||
FAIL=0
|
||||
@@ -36,11 +39,11 @@ ok() { PASS=$((PASS + 1)); printf '✅ %s\n' "$1"; }
|
||||
bad() { FAIL=$((FAIL + 1)); printf '❌ %s\n' "$1"; }
|
||||
|
||||
if [ ! -x "$BIN" ]; then
|
||||
echo "❌ 找不到 $BIN(先 cargo build)"
|
||||
echo "❌ 找不到 ssw-platform 二进制(先 cargo build)"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -x "$PROBE" ]; then
|
||||
echo "❌ 找不到 $PROBE(先 cargo build -p sspf-adapter-baseline --example probe)"
|
||||
echo "❌ 找不到 probe 探针(先 cargo build -p sspf-adapter-baseline --example probe)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user