2 # Tests a couple of yaz-icu conversions
4 # Reads tsticu-[0-9].input files
5 # Writes tsticu-[0-9].output / output.tmp files
6 # Config tsticu-[0-9].xml
11 ../util/yaz-icu >/dev/null 2>&1
12 if test $? = "3"; then
16 for f in ${srcdir}/tsticu-[0-9].input; do
17 fb=`basename ${f} .input`
18 CONFIG=${srcdir}/${fb}.xml
20 OLD=${srcdir}/${fb}.output
21 DIFF=`basename ${fb}`.diff
22 ../util/yaz-icu -c $CONFIG <$f > $NEW
23 if test $? != "0"; then
24 echo "$f: yaz-icu returned error"
26 elif test -f $OLD; then
27 if diff $OLD $NEW >$DIFF; then
31 echo "$f: $NEW and $OLD differ"
35 echo "$f: Making test result $OLD for the first time"