forked from robotframework/RIDE
-
Notifications
You must be signed in to change notification settings - Fork 29
/
test_all.sh
executable file
·44 lines (39 loc) · 875 Bytes
/
test_all.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
#!/usr/bin/sh
export PYTHONPATH=/home/helio/github/RIDE/utest/:$PYTHONPATH
export PYTHONPATH=/home/helio/github/RIDE/src/:$PYTHONPATH
export PYTHONROOT=/usr/bin
if [ $# -ge 1 ]
then
PY=3
DIR="$1"
else
PY=3
DIR="utest"
fi
shift
if [ $# -eq 1 ]
then
DIR="$1"
fi
cd /home/helio/github/RIDE/
for i in `ls -1R $DIR | grep ":"`
do
a=`echo $i |sed s/://g`
for j in `ls -1 $a/test_*py 2>/dev/null`
do
# printf "$j\n"
# bypass file that is passing with invoke test
if [ "$j" = "$a/test_DEBUG_resourcefactory.py" ]
then
b=`true`
else
b=`$PYTHONROOT/python$PY $j`
fi
if [ $? -eq 1 ]
then
printf "$b\n"
printf "MUST FIX: $j\n"
exit
fi
done
done