This commit is contained in:
1 parent
9b8cf48e21
commit
1637d9274b
12 files changed
+1339
-65
No files matched your search
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/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)
|
||||
cargo test -q --workspace >"$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
|
||||
Reference in new issue
Block a user