annotate test/runtests.sh @ 284:05184b95fa16

Moved tests to seperate folder
author Windel Bouwman
date Fri, 15 Nov 2013 13:43:22 +0100
parents python/trunner.sh@5f8c04a8d26b
children e64c8c03128f
rev   line source
229
51d5ed1bd503 Added testrunner
Windel Bouwman
parents:
diff changeset
1 #!/usr/bin/bash
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
269
5f8c04a8d26b Towards better modularity
Windel Bouwman
parents: 231
diff changeset
13 python -m unittest
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