Simplify test-all: just use the script names as banners.

(imported from commit 20e48c468a5ccae63c64385dc114a4f8c892fc61)
This commit is contained in:
Steve Howell 2013-08-09 11:29:31 -04:00
parent cf1d94edef
commit 0a21b9b294
1 changed files with 8 additions and 10 deletions

View File

@ -3,22 +3,20 @@
cd "$(dirname "$0")"/.. cd "$(dirname "$0")"/..
function run { function run {
desc="$1" echo '----'
shift echo "Running $@"
echo "Running $desc"
if ! "$@"; then if ! "$@"; then
printf "\n\e[31;1mFAILED\e[0m $desc\n" printf "\n\e[31;1mFAILED\e[0m $@\n"
exit 1 exit 1
else else
echo echo
fi fi
} }
run 'clean repo' ./tools/clean-repo run ./tools/clean-repo
run 'lint checkers' ./tools/check-all run ./tools/check-all
run 'js unit tests' ./tools/test-js-with-node run ./tools/test-js-with-node
run 'server tests' ./tools/test-backend run ./tools/test-backend
run 'web client tests' ./zerver/tests/frontend/run run ./zerver/tests/frontend/run
printf '\n\e[32mAll OK!\e[0m\n' printf '\n\e[32mAll OK!\e[0m\n'