Files
hx/tests/all.sh
T
johannesandClaude Sonnet 5.5 dfec176f43
build / version (push) Successful in 16s
build / build (aarch64-apple-darwin) (push) Successful in 10m46s
build / build (x86_64-unknown-linux-musl) (push) Successful in 10m45s
build / release (push) Successful in 31s
feat: add --schema, --max-turns and rpc --ask
- hx -p --schema <file> validates the final answer against a JSON schema,
  with one retry that includes the validation errors
- max_turns config key and --max-turns cap the main agent's model calls
- hx --mode rpc --ask sends permission requests to the client instead of
  auto-allowing bash/write/edit calls

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:15:03 +01:00

26 lines
993 B
Bash
Executable File

#!/bin/sh
cd "$(dirname "$0")/.."
export PATH="$HOME/.local/bin:$PATH"
set -e
bash scripts/lint-comments.sh
cargo fmt --all --check
cargo clippy -q --workspace --all-targets -- -D warnings
log=$(mktemp)
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
sh tests/schema_e2e.sh
sh tests/rpc_ask_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
python3 tests/tui_lspinstall.py | grep -q FAIL && { echo "tui lsp install FAIL"; exit 1; } || echo "tui lsp install ok"
sh tests/m7_e2e.sh
sh tests/m8_e2e.sh
sh tests/sandbox_e2e.sh
sh tests/claude_cli_e2e.sh