#!/bin/sh
-# $Id: tstmarciso.sh,v 1.3 2006-08-28 12:34:42 adam Exp $
+# $Id: tstmarciso.sh,v 1.4 2006-12-15 19:28:47 adam Exp $
# Tests reading of ISO2709 and checks that we get identical MARCXML
#
# Reads marc?.marc files , Generates marc?.xml files
NEW=${fb}.new.xml
OLD=${srcdir}/${fb}.xml
DIFF=`basename ${f}`.diff
- ../util/yaz-marcdump -f `cat $CHR` -t utf-8 -X $f > $NEW
+ ../util/yaz-marcdump -f `cat $CHR` -t utf-8 -o marcxml $f > $NEW
if test $? != "0"; then
echo "$f: yaz-marcdump returned error"
ecode=1
fi
else
echo "$f: Making test result $OLD for the first time"
- if test -x /usr/bin/xmllint; then
+ if test -i marcxml /usr/bin/xmllint; then
if xmllint --noout $NEW >out 2>stderr; then
echo "$f: $NEW is well-formed"
mv $NEW $OLD