Files
hx/tests/all.sh
T
hermes 99dc90fd3b
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
M6: native MCP client, lazy index, mcp-serve (closes #42-#51)
2026-09-30 15:51:25 +00:00

20 lines
879 B
Bash
Executable File

#!/bin/sh
# Full local check: fmt, clippy, unit tests, all e2e scripts.
cd "$(dirname "$0")/.."
export PATH="$HOME/.local/bin:$PATH"
set -e
cargo fmt --all --check
cargo clippy -q --workspace --all-targets -- -D warnings
log=$(mktemp)
# rust-analyzer test runs alone: under parallel cargo load its flycheck can publish stale results (see issue)
cargo test -q --workspace -- --skip rust_analyzer_turn_end >"$log" 2>&1 || { grep -E 'FAILED|panicked' -A4 "$log"; exit 1; }
cargo test -q -p hx-lens rust_analyzer_turn_end >>"$log" 2>&1 || { grep -E 'FAILED|panicked' -A4 "$log"; exit 1; }
grep -oE 'ok. [0-9]+ passed' "$log" | awk '{s+=$2} END {print s" unit tests ok"}'
cargo build -q
sh tests/e2e.sh
python3 tests/tui_smoke.py | grep -q FAIL && { echo "tui smoke FAIL"; exit 1; } || echo "tui smoke ok"
sh tests/lens_e2e.sh
sh tests/m4_e2e.sh
sh tests/m5_e2e.sh
sh tests/m6_e2e.sh