annotate test/runtests.sh @ 296:9417caea2eb3

Directorized some backend files
author Windel Bouwman
date Sun, 01 Dec 2013 13:36:58 +0100
parents 1c7c1e619be8
children 158068af716c
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
287
1c7c1e619be8 File movage
Windel Bouwman
parents: 286
diff changeset
3 export PYTHONPATH=$PYTHONPATH:`pwd`/../python
284
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
296
9417caea2eb3 Directorized some backend files
Windel Bouwman
parents: 287
diff changeset
8 python -m unittest
287
1c7c1e619be8 File movage
Windel Bouwman
parents: 286
diff changeset
9 cd gui
1c7c1e619be8 File movage
Windel Bouwman
parents: 286
diff changeset
10 #python -m unittest -v
1c7c1e619be8 File movage
Windel Bouwman
parents: 286
diff changeset
11 cd ..
284
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
12 echo "Awaiting changes in $DIR"
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
13 inotifywait -r -e modify $DIR
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
14 done
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
15 else
286
d9df72971cbf Changed package to module
Windel Bouwman
parents: 285
diff changeset
16 set -e
285
e64c8c03128f Fix runtests
Windel Bouwman
parents: 284
diff changeset
17 python -m unittest -v
284
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
18 fi
229
51d5ed1bd503 Added testrunner
Windel Bouwman
parents:
diff changeset
19
51d5ed1bd503 Added testrunner
Windel Bouwman
parents:
diff changeset
20