Implemented function yaz_marc_read_line which parses MARC line format
[yaz-moved-to-github.git] / test / tstmarciso.sh
index 0ff5022..e4d56ea 100755 (executable)
@@ -1,5 +1,5 @@
 #!/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
@@ -11,7 +11,7 @@ for f in ${srcdir}/marc?.marc; do
     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
@@ -25,7 +25,7 @@ for f in ${srcdir}/marc?.marc; do
        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