projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ignore *.o, *~ files.
[idzebra-moved-to-github.git]
/
test
/
zsh
/
testall.sh
diff --git
a/test/zsh/testall.sh
b/test/zsh/testall.sh
index
71729ff
..
c0db96b
100755
(executable)
--- a/
test/zsh/testall.sh
+++ b/
test/zsh/testall.sh
@@
-1,21
+1,27
@@
#!/bin/sh
#!/bin/sh
-# $Id: testall.sh,v 1.4 2004-06-15 09:43:34 adam Exp $
+# $Id: testall.sh,v 1.6 2006-04-28 18:50:48 adam Exp $
# run all zebrash tests
# run all zebrash tests
-pp=${srcdir:-"."}
+srcdir=${srcdir:-"."}
+
test -d reg || mkdir reg
rm -f *.mf reg/*.mf *.out
test -d reg || mkdir reg
rm -f *.mf reg/*.mf *.out
-for F in $pp/*.zsh
+for F in $srcdir/*.zsh
do
echo $F
do
echo $F
- ../../index/zebrash -c $pp/zebra.cfg <$F >$F.out
+ if [ "." = "$srcdir" ]
+ then # running make check
+ ../../index/zebrash -c $srcdir/zebra.cfg <$F >$F.out
+ else # running make distcheck
+ ../../index/zebrash -c $srcdir/zebra.cfg <$F >/dev/null
+ fi
RC=$?
if [ "$RC" -gt "0" ]
RC=$?
if [ "$RC" -gt "0" ]
- then
- echo "$F failed with exit code $RC"
- FINAL=$RC
+ then
+ echo "$F failed with exit code $RC"
+ FINAL=$RC
fi
done
if [ "$FINAL" ]
fi
done
if [ "$FINAL" ]