Commit 0d8da175 authored by Michele Carignani's avatar Michele Carignani
Browse files

add static validation script

parent 0b88105c
Loading
Loading
Loading
Loading

scripts/validate.sh

0 → 100644
+13 −0
Original line number Original line Diff line number Diff line
#!/bin/bash
#
# Validate syntax and keywords existance in each Robot file

res=0
for i in */*/*.robot ; do
	[[ "$i" != *"Keywords.robot"* && "$i" != *"Keyword.robot"* ]] && \
	(echo "++++ Dryrun $i" && \
	robot --dryrun --output NONE --report NONE --log NONE $i || \
	(echo "++++ Issues in file $i" && res=1));
done

exit $res