Add a tool to run all the test suites

(imported from commit 073f3f0595669ce7c2cc9334e7318bc2856e1e8e)
This commit is contained in:
Keegan McAllister 2012-11-14 15:25:20 -05:00
parent 2a619a0054
commit 08a43f2f5c
1 changed files with 22 additions and 0 deletions

22
tools/test-all Executable file
View File

@ -0,0 +1,22 @@
#!/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' ./manage.py test zephyr --skip-generate
printf '\n\e[32mAll OK!\e[0m\n'