Revision 6efe3c2152745de291ed9d74aec6e9727bcaed82 authored by HelioGuilherme66 on 23 January 2019, 00:59:18 UTC, committed by HelioGuilherme66 on 23 January 2019, 00:59:18 UTC
1 parent 580923d
Raw File
test_all.sh
#!/usr/bin/sh

export PYTHONPATH=/home/helio/github/RIDE/utest/:$PYTHONPATH
export PYTHONPATH=/home/helio/github/RIDE/src/:$PYTHONPATH

#export PYTHONROOT=/usr/local/bin
export PYTHONROOT=/usr/bin

if [ $# -ge 1 ]
then
    if [ $1 -eq 2 ]
    then
         PY=2.7
    elif [ $1 -eq 3 ]
    then
         PY=3.6
    else
        DIR="$1"
    fi
else
    PY=2
    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_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
back to top