root / ci / tests.sh @ 1c5f498a
History | View | Annotate | Download (499 Bytes)
1 |
#!/bin/sh |
---|---|
2 |
set -e |
3 |
|
4 |
export SYNNEFO_SETTINGS_DIR=/tmp/snf-test-settings |
5 |
|
6 |
SNF_MANAGE=$(which snf-manage) || |
7 |
{ echo "Cannot find snf-manage in $PATH" 1>&2; exit 1; } |
8 |
|
9 |
APPS="api db logic plankton quotas vmapi im quotaholder_app helpdesk" |
10 |
TEST="$(which snf-manage) test $APPS --traceback --settings=synnefo.settings.test" |
11 |
|
12 |
if coverage >/dev/null 2>&1; then |
13 |
coverage run $TEST |
14 |
coverage report --include=snf-* |
15 |
else |
16 |
echo "WARNING: Cannot find coverage in path, skipping coverage tests" 1>&2 |
17 |
$TEST |
18 |
fi |