New facilities for the MARC module. The reading - and writing of
[yaz-moved-to-github.git] / test / tstmarc.sh
diff --git a/test/tstmarc.sh b/test/tstmarc.sh
deleted file mode 100755 (executable)
index 97b1ab4..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-# $Id: tstmarc.sh,v 1.2 2004-11-16 17:12:28 adam Exp $
-srcdir=${srcdir:-.}
-ecode=0
-for f in ${srcdir}/marc?; do
-    NEW=`basename ${f}`.new.xml
-    OLD=${f}.xml
-    DIFF=`basename ${f}`.diff
-    ../util/yaz-marcdump -f iso-8859-1 -t utf-8 -X $f > $NEW
-    if test $? != "0"; then
-       echo "Failed decode of $f"
-       ecode=1
-    elif test -f $OLD; then
-        if diff $OLD $NEW >$DIFF; then
-           rm $DIFF
-           rm $NEW
-       else
-           echo "Differ in $f"
-           ecode=1
-       fi
-    else
-       echo "Making test $f 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"
-               mv $NEW $OLD
-           else
-               echo "XML for $f is invalid"
-               ecode=1
-           fi
-       else
-           echo "xmllint not found. install libxml2-utils"
-           ecode=1
-       fi
-    fi
-done
-exit $ecode
-