Lots of test cleanup.

This commit is contained in:
Eric Freese
2016-03-05 20:53:07 -07:00
parent dffd9beae1
commit e5cdbb6c33
48 changed files with 707 additions and 8321 deletions

29
script/test_runner.zsh Executable file
View 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