forked from hdima/erlport
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtestall
executable file
·90 lines (78 loc) · 1.74 KB
/
testall
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
#! /bin/sh
SANDBOX="sandbox"
LOGFILE="testall.log"
ERLANG=" \
$SANDBOX/otp_src_R13B04/bin \
$SANDBOX/otp_src_R14B04/bin \
$SANDBOX/otp_src_R15B01/bin \
$SANDBOX/otp_src_R16B/bin \
$SANDBOX/otp_src_17.3/bin \
"
PYTHON=" \
$SANDBOX/Python-2.5.6 \
$SANDBOX/Python-2.6.8 \
$SANDBOX/Python-2.7.3 \
"
PYTHON3=" \
$SANDBOX/Python-3.0.1 \
$SANDBOX/Python-3.1.5 \
$SANDBOX/Python-3.2.3 \
$SANDBOX/Python-3.3.0 \
"
RUBY18=" \
$SANDBOX/ruby-1.8.7/bin \
"
RUBY19=" \
$SANDBOX/ruby-1.9.1/bin \
$SANDBOX/ruby-1.9.2/bin \
$SANDBOX/ruby-1.9.3/bin \
$SANDBOX/ruby-2.0.0/bin \
"
testall()
{
testerlang
testpython
testruby
make clean
}
testerlang()
{
for erlang in $ERLANG; do
echo
echo "***********************************************************"
echo "Test $erlang"
echo "***********************************************************"
echo
make clean
(export PATH="$erlang:$PATH"; make test)
done
}
testpython()
{
for python in $PYTHON $PYTHON3; do
echo
echo "***********************************************************"
echo "Test $python"
echo "***********************************************************"
echo
make clean
(export PATH="$python:$PATH"; make test)
done
}
testruby()
{
for ruby in $RUBY18 $RUBY19; do
echo
echo "***********************************************************"
echo "Test $ruby"
echo "***********************************************************"
echo
make clean
(export PATH="$ruby:$PATH"; make test)
done
}
set -e
testall 2>&1 | tee $LOGFILE
echo
echo "ALL TESTS OK!"
echo