From 08a43f2f5ce30ba9d5a0f635058b8abad4c18339 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Wed, 14 Nov 2012 15:25:20 -0500 Subject: [PATCH] Add a tool to run all the test suites (imported from commit 073f3f0595669ce7c2cc9334e7318bc2856e1e8e) --- tools/test-all | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 tools/test-all diff --git a/tools/test-all b/tools/test-all new file mode 100755 index 0000000000..e282484cff --- /dev/null +++ b/tools/test-all @@ -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'