annotate test/runtests.sh @ 285:e64c8c03128f

Fix runtests
author Windel Bouwman
date Fri, 15 Nov 2013 13:45:34 +0100
parents 05184b95fa16
children d9df72971cbf
rev   line source
285
e64c8c03128f Fix runtests
Windel Bouwman
parents: 284
diff changeset
1 #!/usr/bin/env bash
229
51d5ed1bd503 Added testrunner
Windel Bouwman
parents:
diff changeset
2
284
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
3 export PYTHONPATH=$PYTHONPATH:../python
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
4
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
5 if [ $1 == "loop" ]; then
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
6 DIR=..
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
7 while :; do
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
8 python -m unittest
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
9 echo "Awaiting changes in $DIR"
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
10 inotifywait -r -e modify $DIR
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
11 done
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
12 else
285
e64c8c03128f Fix runtests
Windel Bouwman
parents: 284
diff changeset
13 python -m unittest -v
284
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
14 fi
229
51d5ed1bd503 Added testrunner
Windel Bouwman
parents:
diff changeset
15
51d5ed1bd503 Added testrunner
Windel Bouwman
parents:
diff changeset
16