validate.sh 584 Bytes
Newer Older
#!/bin/bash
#
# Validate syntax and keywords existance in each Robot file

Elian Kraja's avatar
Elian Kraja committed
cd /home/etsi/dev/robot/ 

res=0
for i in */*/*.robot ; do
Elian Kraja's avatar
Elian Kraja committed
    if [[ "$i" != *"Keywords.robot"* && "$i" != *"Keyword.robot"* ]] ; then
	echo "++++ Dryrun file $i"
	msg=$(robot --dryrun --output NONE --report NONE --log NONE $i 2>&1)
	if [ $? != 0 ] ; then
	    echo "++++ Issues found in file $i"
	    echo "$msg"
            res=1
        fi
    fi
Elian Kraja's avatar
Elian Kraja committed
cd /home/etsi/dev/robot2doc/robot2doc

mkdir -p /home/etsi/dev/build

python3 create_sols.py ../../robot 'local' ../../build
res2=$?

exit $res && $res2