projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
daemon: log total number of bad signals from child on stop
[yaz-moved-to-github.git]
/
test
/
test_cql2pqf.sh
diff --git
a/test/test_cql2pqf.sh
b/test/test_cql2pqf.sh
index
052b8e4
..
429e38a
100755
(executable)
--- a/
test/test_cql2pqf.sh
+++ b/
test/test_cql2pqf.sh
@@
-9,7
+9,7
@@
comment=0
ecode=0
test -f ${srcdir}/cql2pqfsample || exit 1
test -d cql2pqf || mkdir cql2pqf
ecode=0
test -f ${srcdir}/cql2pqfsample || exit 1
test -d cql2pqf || mkdir cql2pqf
-for f in `cat ${srcdir}/cql2pqfsample`; do
+while read f; do
if echo $f | grep '^#' >/dev/null; then
comment=1
else
if echo $f | grep '^#' >/dev/null; then
comment=1
else
@@
-24,7
+24,7
@@
for f in `cat ${srcdir}/cql2pqfsample`; do
OUT2=cql2pqf/$secno.$testno.out.tmp
ERR2=cql2pqf/$secno.$testno.err.tmp
DIFF=cql2pqf/$secno.$testno.diff
OUT2=cql2pqf/$secno.$testno.out.tmp
ERR2=cql2pqf/$secno.$testno.err.tmp
DIFF=cql2pqf/$secno.$testno.diff
- ../util/cql2pqf ${srcdir}/../etc/pqf.properties "$f" >$OUT2 2>$ERR2
+ ../util/cql2pqf -v ${srcdir}/../etc/pqf.properties "$f" >$OUT2 2>$ERR2
if test -f $OUT1 -a -f $ERR1; then
if diff $OUT1 $OUT2 >$DIFF; then
rm $DIFF
if test -f $OUT1 -a -f $ERR1; then
if diff $OUT1 $OUT2 >$DIFF; then
rm $DIFF
@@
-49,6
+49,6
@@
for f in `cat ${srcdir}/cql2pqfsample`; do
ecode=1
fi
fi
ecode=1
fi
fi
-done
+done < cql2pqfsample
IFS="$oIFS"
exit $ecode
IFS="$oIFS"
exit $ecode