mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-05-11 05:54:57 +00:00
Lots of test cleanup.
This commit is contained in:
29
script/test_runner.zsh
Executable file
29
script/test_runner.zsh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
DIR=${0:a:h}
|
||||
ROOT_DIR="$DIR/.."
|
||||
TEST_DIR="$ROOT_DIR/test"
|
||||
|
||||
header() {
|
||||
local message="$1"
|
||||
|
||||
cat <<-EOF
|
||||
|
||||
#====================================================================#
|
||||
# $message
|
||||
#====================================================================#
|
||||
EOF
|
||||
}
|
||||
|
||||
local -a tests
|
||||
|
||||
# Test suites to run
|
||||
tests=($TEST_DIR/**/*_test.zsh)
|
||||
|
||||
local retval=0
|
||||
for suite in $tests; do
|
||||
header "${suite#"$TEST_DIR"}"
|
||||
zsh -f "$suite" || retval=$?
|
||||
done
|
||||
|
||||
exit retval
|
||||
Reference in New Issue
Block a user