Tool for checking that .robot files went through robot.tidy
[integration/test.git] / tools / robot_check / tidy.sh
1 # Convenience script to run check on all .robot files in the project.
2 # Run with the "quiet" argument to get rid of the non-error output.
3
4 if test "${1-loud}" = "quiet"; then
5   COMMAND="quiet"
6 elif test "${1-loud}" = "tidy"; then
7   COMMAND="tidy"
8 else
9   COMMAND="check"
10 fi
11 BASE=`dirname ${0}`
12 cd $BASE
13 BASE=`pwd`
14 cd ../..
15 DIRLIST=""
16 for Dir in *; do
17   if test -d $Dir; then
18     DIRLIST="$DIRLIST $Dir"
19   fi
20 done
21 python $BASE/tidytool.py $COMMAND $DIRLIST