Fix documentation of of chr's equivalent directive ZEB-672
[idzebra-moved-to-github.git] / test / zsh / testall.sh
1 #!/bin/sh
2 # run all zebrash tests
3
4 srcdir=${srcdir:-"."}
5
6
7 test -d reg || mkdir reg
8 rm -f *.mf reg/*.mf *.out
9
10 for F in $srcdir/*.zsh
11 do
12   echo $F
13   if [ "." = "$srcdir" ] 
14       then  # running make check
15       ../../index/zebrash -c $srcdir/zebra.cfg <$F >$F.out
16   else   # running make distcheck
17       ../../index/zebrash -c $srcdir/zebra.cfg <$F >/dev/null
18   fi
19   RC=$?
20   if [ "$RC" -gt "0" ]
21       then 
22       echo "$F failed with exit code $RC"
23       FINAL=$RC
24   fi
25 done
26 if [ "$FINAL" ]
27 then
28     echo "Tests FAILED"
29     exit 9
30 fi
31 exit 0