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
12 ../util/yaz-icu >/dev/null 2>&1
13 if test $? = "3"; then
17 for f in ${srcdir}/tsticu-[0-9].input; do
18 fb=`basename ${f} .input`
19 CONFIG=${srcdir}/${fb}.xml
21 OLD=${srcdir}/${fb}.output
22 DIFF=`basename ${f}`.diff
23 ../util/yaz-icu -c $CONFIG <$f > $NEW
24 if test $? != "0"; then
25 echo "$f: yaz-icu returned error"
27 elif test -f $OLD; then
28 if diff $OLD $NEW >$DIFF; then
32 echo "$f: $NEW and $OLD differ"
36 echo "$f: Making test result $OLD for the first time"