X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstmarciso.sh;h=a51a48a2dd898cc62536f4a24e6e33fea396003b;hb=c168cffc46e3b2b66e66e48f94f8e87b6566702b;hp=9bf324d1716d814a294b0e6059aebf03e1828fb5;hpb=626ee9b09c95c3585c432623c042872b0d1fea92;p=yaz-moved-to-github.git diff --git a/test/tstmarciso.sh b/test/tstmarciso.sh index 9bf324d..a51a48a 100755 --- a/test/tstmarciso.sh +++ b/test/tstmarciso.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: tstmarciso.sh,v 1.1 2006-04-19 10:05:04 adam Exp $ +# $Id: tstmarciso.sh,v 1.2 2006-04-20 19:47:02 adam Exp $ # Tests reading of ISO2709 and checks that we get identical MARCXML srcdir=${srcdir:-.} ecode=0 @@ -9,24 +9,24 @@ for f in ${srcdir}/marc?; do DIFF=`basename ${f}`.diff ../util/yaz-marcdump -f `cat ${f}.chr` -t utf-8 -X $f > $NEW if test $? != "0"; then - echo "Failed decode of $f" + echo "$f: yaz-marcdump returned error" ecode=1 elif test -f $OLD; then if diff $OLD $NEW >$DIFF; then rm $DIFF rm $NEW else - echo "Differ in $f" + echo "$f: $NEW and $OLD differ" ecode=1 fi else - echo "Making test $f for the first time" + echo "$f: Making test result $OLD for the first time" if test -x /usr/bin/xmllint; then if xmllint --noout $NEW >out 2>stderr; then - echo "XML for $f is OK" + echo "$f: $NEW is well-formed" mv $NEW $OLD else - echo "XML for $f is invalid" + echo "$f: $NEW not well-formed" ecode=1 fi else