Zebra now works with make distcheck
[idzebra-moved-to-github.git] / test / zsh / testall.sh
index b2fa5cf..71729ff 100755 (executable)
@@ -1,12 +1,16 @@
 #!/bin/sh
+# $Id: testall.sh,v 1.4 2004-06-15 09:43:34 adam Exp $
 # run all zebrash tests
-mkdir -p reg
+
+pp=${srcdir:-"."}
+
+test -d reg || mkdir reg
 rm -f *.mf reg/*.mf *.out
 
-for F in *.zsh
+for F in $pp/*.zsh
 do
   echo $F
-  ../../index/zebrash <$F >$F.out 
+  ../../index/zebrash -c $pp/zebra.cfg <$F >$F.out 
   RC=$?
   if [ "$RC" -gt "0" ]
   then