2 # $Id: tstcql2pqf.sh,v 1.1 2008-01-06 21:48:23 adam Exp $
11 test -f ${srcdir}/cql2pqfsample || exit 1
12 test -d cql2pqf || mkdir cql2pqf
13 for f in `cat ${srcdir}/cql2pqfsample`; do
14 if echo $f | grep '^#' >/dev/null; then
17 if test "$comment" = "1"; then
18 secno=`expr $secno + 1`
22 testno=`expr $testno + 1`
23 OUT1=${srcdir}/cql2pqf/$secno.$testno.out
24 ERR1=${srcdir}/cql2pqf/$secno.$testno.err
25 OUT2=cql2pqf/$secno.$testno.out.tmp
26 ERR2=cql2pqf/$secno.$testno.err.tmp
27 DIFF=cql2pqf/$secno.$testno.diff
28 ../util/cql2pqf ${srcdir}/../etc/pqf.properties "$f" >$OUT2 2>$ERR2
29 if test -f $OUT1 -a -f $ERR1; then
30 if diff $OUT1 $OUT2 >$DIFF; then
34 echo "diff out $secno $testno $f"
38 if diff $ERR1 $ERR2 >$DIFF; then
42 echo "diff err $secno $testno $f"
47 echo "making test $secno $testno $f"