annotate test/runtests.sh @ 306:b145f8e6050b

Start on c3 rewrite
author Windel Bouwman
date Mon, 09 Dec 2013 19:00:21 +0100
parents 158068af716c
children 11c5a8a70c02
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
306
b145f8e6050b Start on c3 rewrite
Windel Bouwman
parents: 300
diff changeset
5 if [ "$1" == "loop" ]
b145f8e6050b Start on c3 rewrite
Windel Bouwman
parents: 300
diff changeset
6 then
284
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
7 DIR=..
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
8 while :; do
296
9417caea2eb3 Directorized some backend files
Windel Bouwman
parents: 287
diff changeset
9 python -m unittest
287
1c7c1e619be8 File movage
Windel Bouwman
parents: 286
diff changeset
10 cd gui
1c7c1e619be8 File movage
Windel Bouwman
parents: 286
diff changeset
11 #python -m unittest -v
1c7c1e619be8 File movage
Windel Bouwman
parents: 286
diff changeset
12 cd ..
284
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
13 echo "Awaiting changes in $DIR"
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
14 inotifywait -r -e modify $DIR
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
15 done
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
16 else
286
d9df72971cbf Changed package to module
Windel Bouwman
parents: 285
diff changeset
17 set -e
300
Windel Bouwman
parents: 296
diff changeset
18 python -m unittest
284
05184b95fa16 Moved tests to seperate folder
Windel Bouwman
parents: 269
diff changeset
19 fi
229
51d5ed1bd503 Added testrunner
Windel Bouwman
parents:
diff changeset
20
51d5ed1bd503 Added testrunner
Windel Bouwman
parents:
diff changeset
21