2 # $Id: tstmarc.sh,v 1.1 2004-10-01 11:43:43 adam Exp $
5 for f in ${srcdir}/marc?; do
9 ../util/yaz-marcdump -f iso-8859-1 -t utf-8 -X $f > $NEW
10 if test $? != "0"; then
11 echo "Failed decode of $f"
13 elif test -f $OLD; then
14 if diff $OLD $NEW >$DIFF; then
22 echo "Making test $f for the first time"
23 if test -x /usr/bin/xmllint; then
24 if xmllint --noout $NEW >out 2>stderr; then
25 echo "XML for $f is OK"
28 echo "XML for $f is invalid"
32 echo "xmllint not found. install libxml2-utils"