-
Notifications
You must be signed in to change notification settings - Fork 27
/
runtests.sh
executable file
·96 lines (75 loc) · 2.05 KB
/
runtests.sh
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#!/bin/bash
PYTHON23=`which python23`
PYTHON23=${PYTHON23:-`which python2.3`}
PYTHON23=${PYTHON23:-/opt/python23/bin/python}
PYTHON24=`which python24`
PYTHON24=${PYTHON24:-`which python2.4`}
PYTHON24=${PYTHON24:-/opt/python24/bin/python}
PYTHON25=`which python25`
PYTHON25=${PYTHON25:-`which python2.5`}
PYTHON25=${PYTHON25:-/opt/python25/bin/python}
if [ -a python26/bin/python ]
then
PYTHON26=python26/bin/python
fi
PYTHON26=${PYTHON26:-`which python26`}
PYTHON26=${PYTHON26:-`which python2.6`}
PYTHON26=${PYTHON26:-/opt/python26/bin/python}
if [ -a python27/bin/python ]
then
PYTHON27=python27/bin/python
fi
PYTHON27=${PYTHON27:-`which python27`}
PYTHON27=${PYTHON27:-`which python2.7`}
PYTHON27=${PYTHON27:-/opt/python27/bin/python}
if [ -a python31/bin/python ]
then
PYTHON31=python31/bin/python
fi
PYTHON31=${PYTHON31:-`which python31`}
PYTHON31=${PYTHON31:-`which python3.1`}
PYTHON31=${PYTHON31:-/opt/python31/bin/python}
if [ -a python32/bin/python ]
then
PYTHON32=python32/bin/python
fi
PYTHON32=${PYTHON32:-`which python32`}
PYTHON32=${PYTHON32:-`which python3.2`}
PYTHON32=${PYTHON32:-/opt/python32/bin/python}
if [ -a python33/bin/python ]
then
PYTHON33=python33/bin/python
fi
PYTHON33=${PYTHON33:-`which python33`}
PYTHON33=${PYTHON33:-`which python3.3`}
PYTHON33=${PYTHON33:-/opt/python33/bin/python}
if [ -a python34/bin/python ]
then
PYTHON34=python34/bin/python
fi
PYTHON34=${PYTHON34:-`which python34`}
PYTHON34=${PYTHON34:-`which python3.4`}
PYTHON34=${PYTHON34:-/opt/python34/bin/python}
# Fail on error
set -e
cd source/_tests
echo "##### PY23 #######"
$PYTHON23 tests23.py
echo "##### PY24 #######"
$PYTHON24 tests24.py
echo "##### PY25 #######"
$PYTHON25 tests24.py
echo "##### PY26 #######"
$PYTHON26 tests26.py
echo "##### PY27 #######"
# Run both the Python 2.6 tests and the 2.7 specific tests:
$PYTHON27 tests26.py
$PYTHON27 tests27.py
echo "##### PY31 #######"
$PYTHON31 tests31.py
echo "##### PY32 #######"
$PYTHON32 tests32.py
echo "##### PY33 #######"
$PYTHON33 tests32.py
echo "##### PY34 #######"
$PYTHON34 tests32.py