summaryrefslogtreecommitdiff
path: root/tests.sh
blob: 061b563fb71a77adf9c7904cbdfae70dfbc3e9db (plain)
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
#!/bin/sh
echo -n "Running tests with Python 2.6... "
python2.6 -Wd runtests.py -q
if [ $? -ne 0 ];then
    echo Failed, re-running
    python2.6 -Wd runtests.py
    exit $?
else
    echo Success
fi

echo -n "Running tests with Python 2.7... "
python2.7 -Wd -bb -3 runtests.py -q
if [ $? -ne 0 ];then
    echo Failed, re-running
    python2.7 -Wd -bb -3 runtests.py
    exit $?
else
    echo Success
fi

if [ $? -ne 0 ];then
    echo Failed
    exit $?
else
    echo "Good job, commit now! (or add tests)"
fi