2 # $Id: tstcql.sh,v 1.3 2004-10-01 11:43:43 adam Exp $
11 test -f ${srcdir}/cqlsample || exit 1
12 test -d cql || mkdir cql
13 for f in `cat ${srcdir}/cqlsample`; 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}/cql/$secno.$testno.out
24 ERR1=${srcdir}/cql/$secno.$testno.err
25 OUT2=cql/$secno.$testno.out.tmp
26 ERR2=cql/$secno.$testno.err.tmp
27 DIFF=cql/$secno.$testno.diff
28 ../util/cql2xcql "$f" >$OUT2 2>$ERR2
29 if test -f $OUT1 -a -f $ERR1; then
30 if diff $OUT1 $OUT2 >$DIFF; then
33 echo "diff out $secno $testno $f"
37 if diff $ERR1 $ERR2 >$DIFF; then
40 echo "diff err $secno $testno $f"
45 echo "making test $secno $testno $f"