[TASK] Replace validateRstFiles.sh with PHP version
[Packages/TYPO3.CMS.git] / Build / Scripts / test / rstFiles / testValidateRstFiles.sh
1 #!/bin/bash
2
3 ###########################
4 #
5 # Test validateRstFiles.php
6 #
7 ###########################
8
9 # --------------
10 # automatic vars
11 # --------------
12 savedir=$(pwd)
13 scriptdir=$(dirname $0)
14 cd $scriptdir
15 scriptdir=$(pwd)
16 progname=$(basename $0)
17
18
19 ls data | while read testdir;do
20 echo "testing $testdir"
21 ../../validateRstFiles.php -d data/$testdir >/dev/null 2>/dev/null
22 if [ $? -ne 1 ];then
23 echo " "
24 echo "$progname: ERROR: test on data/$testdir should return exit code 1"
25 fi
26 done
27
28 echo " "
29 echo "$progname: all tests ok"
30
31 cd $savedir