X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftsticu.sh;fp=test%2Ftsticu.sh;h=0000000000000000000000000000000000000000;hp=198835594fe35250ead36f64a3f0fbd7f172588e;hb=b756b711841bac38e5b69baa51939ca9e1c01adb;hpb=262800f89e3280c5b594faf6eea2c98e988ee2cb diff --git a/test/tsticu.sh b/test/tsticu.sh deleted file mode 100755 index 1988355..0000000 --- a/test/tsticu.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh -# Tests a couple of yaz-icu conversions -# -# Reads tsticu-[0-9].input files -# Writes tsticu-[0-9].output / output.tmp files -# Config tsticu-[0-9].xml - -srcdir=${srcdir:-.} -ecode=0 - -../util/yaz-icu >/dev/null 2>&1 -if test $? = "3"; then - exit 0 -fi - -for f in ${srcdir}/tsticu-[0-9].input; do - fb=`basename ${f} .input` - CONFIG=${srcdir}/${fb}.xml - NEW=${fb}.output.tmp - OLD=${srcdir}/${fb}.output - DIFF=`basename ${fb}`.diff - ../util/yaz-icu -c $CONFIG <$f > $NEW - if test $? != "0"; then - echo "$f: yaz-icu returned error" - ecode=1 - elif test -f $OLD; then - if diff $OLD $NEW >$DIFF; then - rm $DIFF - rm $NEW - else - echo "$f: $NEW and $OLD differ" - ecode=1 - fi - else - echo "$f: Making test result $OLD for the first time" - mv $NEW $OLD - ecode=1 - fi -done -exit $ecode - -# Local Variables: -# mode:shell-script -# sh-indentation: 2 -# sh-basic-offset: 4 -# End: