Files
zulip/tools/test-all
Tim Abbott af88c10c5e Add tools/test-backend script to run backend tests.
(imported from commit fde4c7deb1e64e8cca9d62cda905f13d90392961)
2013-01-10 16:59:36 -05:00

23 lines
389 B
Bash
Executable File

#!/bin/bash -e
cd "$(dirname "$0")"/..
function run {
desc="$1"
shift
echo "Running $desc"
if ! "$@"; then
printf "\n\e[31;1mFAILED\e[0m $desc\n"
exit 1
else
echo
fi
}
run 'lint checkers' ./tools/check-all
run 'web client tests' ./zephyr/tests/frontend/run
run 'server tests' ./tools/test-backend
printf '\n\e[32mAll OK!\e[0m\n'