debian: updated release to v0.9.1-x
[git-cola.git] / t / run_tests
blob3d00af81e3907f911781dabd30c5e2ed73acde88
1 #!/bin/sh
3 cd $(dirname $0)
5 ERROR=''
6 UGIT=$(which ugit)
7 test -z "$UGIT" && ERROR=1
9 if [ $ERROR ]; then
10 echo "ugit must be in your path in order to call run_tests directly."
11 exit -1
13 BINDIR=$(dirname $UGIT)
14 PREFIX=$(dirname $BINDIR)
15 PYTHONPATH="$PREFIX"/share:"$PYTHONPATH"
16 export PYTHONPATH
18 for unittest in t[0-9]*.py; do
19 echo "Running test: $unittest"
20 ./$unittest
21 if [ $? -ne 0 ]; then
22 echo "Test failed with exit code $?"
23 exit -1
25 done