changed output to be non-cascarding when using -n switch
[yaz-moved-to-github.git] / test / tstmarcxml.sh
index 0f5cd0b..6093628 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
-# $Id: tstmarcxml.sh,v 1.2 2006-04-20 19:47:02 adam Exp $
+# $Id: tstmarcxml.sh,v 1.4 2006-12-15 19:28:47 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
@@ -12,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
@@ -31,3 +33,8 @@ for f in ${srcdir}/marc?.xml; do
 done
 exit $ecode
 
+# Local Variables:
+# mode:shell-script
+# sh-indentation: 2
+# sh-basic-offset: 4
+# End: