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