X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstmarccol.sh;fp=test%2Ftstmarccol.sh;h=0000000000000000000000000000000000000000;hb=b756b711841bac38e5b69baa51939ca9e1c01adb;hp=63031b7d4cf6bc27eaed85b255e20ecbe7a5b85b;hpb=262800f89e3280c5b594faf6eea2c98e988ee2cb;p=yaz-moved-to-github.git diff --git a/test/tstmarccol.sh b/test/tstmarccol.sh deleted file mode 100755 index 63031b7..0000000 --- a/test/tstmarccol.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh -# Tests reading of a bunch of non-roman UTF-8 ISO2709 and see if -# we can encode it in MARC-8 -# -# Reads marccol?.u8.marc files , Generates marccol?.u8.{1,2}.lst -srcdir=${srcdir:-.} -ecode=0 -for f in ${srcdir}/marccol?.u8.marc; do - - fb=`basename ${f} .marc` - - DIFF=${fb}.1.lst.diff - NEW=${fb}.1.lst.new - OLD=${srcdir}/${fb}.1.lst - ../util/yaz-marcdump -f utf-8 -t utf-8 $f >$NEW - if test $? != "0"; then - echo "$f: yaz-marcdump returned error" - ecode=1 - break - 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 - fi - - filem=`echo $fb | sed 's/u8/m8/'`.marc - ../util/yaz-marcdump -o marc -f utf8 -t marc8lossless $f >$filem - - DIFF=${fb}.2.lst.diff - NEW=${fb}.2.lst.new - OLD=${srcdir}/${fb}.2.lst - ../util/yaz-marcdump -f marc8 -t utf-8 $filem >$NEW - if test $? != "0"; then - echo "$f: yaz-marcdump returned error" - ecode=1 - break - elif test -f $OLD; then - if diff $OLD $NEW >$DIFF; then - rm $DIFF - rm $NEW - rm $filem - else - echo "$f: $NEW and $OLD differ" - ecode=1 - fi - else - echo "$f: Making test result $OLD for the first time" - mv $NEW $OLD - rm $filem - fi -done -exit $ecode - -# Local Variables: -# mode:shell-script -# sh-indentation: 2 -# sh-basic-offset: 4 -# End: