X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstmarcxml.sh;h=34c81e481e87972fc356e9af3272882d744646f5;hb=0725af5d06bfcdaf9888886f04c63810c1d8cf72;hp=b18a3a86fc214918954e118d2989f0650585acc3;hpb=b925ea17d6f146a28d745b0d34e9eec6eafda21f;p=yaz-moved-to-github.git diff --git a/test/tstmarcxml.sh b/test/tstmarcxml.sh index b18a3a8..34c81e4 100755 --- a/test/tstmarcxml.sh +++ b/test/tstmarcxml.sh @@ -1,12 +1,12 @@ #!/bin/sh -# $Id: tstmarcxml.sh,v 1.3 2006-08-28 12:34:42 adam Exp $ +# $Id: tstmarcxml.sh,v 1.5 2007-02-17 10:53:05 adam Exp $ # Tests reading of MARCXML and checks that we get identical ISO2709 output. # # Reads marc?.xml files , Generates marc?.xml.marc files srcdir=${srcdir:-.} ecode=0 # Skip this test if Libxml2 support is not enabled -../util/yaz-marcdump -x >/dev/null 2>&1 +../util/yaz-marcdump -i marcxml >/dev/null 2>&1 if test $? = "3"; then exit 0 fi @@ -14,7 +14,7 @@ for f in ${srcdir}/marc?.xml; do NEW=`basename ${f}`.new.marc OLD=${f}.marc DIFF=`basename ${f}`.diff - ../util/yaz-marcdump -f utf-8 -t utf-8 -x -I $f > $NEW + ../util/yaz-marcdump -f utf-8 -t utf-8 -i marcxml -o marc $f > $NEW if test $? != "0"; then echo "Failed decode of $f" ecode=1