10 test -f ${srcdir}/cql2xcqlsample || exit 1
11 test -d cql || mkdir cql
12 for f in `cat ${srcdir}/cql2xcqlsample`; do
13 if echo $f | grep '^#' >/dev/null; then
16 if test "$comment" = "1"; then
17 secno=`expr $secno + 1`
21 testno=`expr $testno + 1`
22 OUT1=${srcdir}/cql/$secno.$testno.out
23 ERR1=${srcdir}/cql/$secno.$testno.err
24 OUT2=cql/$secno.$testno.out.tmp
25 ERR2=cql/$secno.$testno.err.tmp
26 DIFF=cql/$secno.$testno.diff
27 ../util/cql2xcql "$f" >$OUT2 2>$ERR2
28 if test -f $OUT1 -a -f $ERR1; then
29 if diff $OUT1 $OUT2 >$DIFF; then
33 echo "diff out $secno $testno $f"
37 if diff $ERR1 $ERR2 >$DIFF; then
41 echo "diff err $secno $testno $f"
46 echo "making test $secno $testno $f"