tests.sh 364 Bytes
Newer Older
1
#!/bin/sh
2

3
4
set -e

5
6
export SYNNEFO_SETTINGS_DIR='/tmp/snf-test-settings'

7
APPS="api db logic plankton quotas vmapi im quotaholder_app helpdesk"
8
TEST="$(which snf-manage) test $APPS --traceback --settings=synnefo.settings.test"
9
10
11
12
13
14
15
16

if coverage >/dev/null 2>&1; then
  coverage run $TEST
  coverage report --include=snf-*
else
  echo "coverage not installed"
  $TEST
fi