-
Notifications
You must be signed in to change notification settings - Fork 63
/
run-tests
executable file
·38 lines (32 loc) · 817 Bytes
/
run-tests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
export LOG_LEVEL=debug
STATUS=0
nosetests ./tests/test_asyncio_alone.py \
--logging-format='%(asctime)s [%(name)s] %(levelname)-6s %(message)s' \
--with-coverage \
--cover-package=tormysql
pip install tornado
for file in ./tests/test_*.py
do
echo $file
nosetests $file \
--logging-format='%(asctime)s [%(name)s] %(levelname)-6s %(message)s' \
--with-coverage \
--cover-package=tormysql
if [ $? != 0 ]; then
STATUS=1
fi
done
pip install tornado==5.1.1
for file in ./tests/test_*.py
do
echo $file
nosetests $file \
--logging-format='%(asctime)s [%(name)s] %(levelname)-6s %(message)s' \
--with-coverage \
--cover-package=tormysql
if [ $? != 0 ]; then
STATUS=1
fi
done
exit $STATUS