Test yaz-marcdump without character set conversion
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 4 Dec 2014 13:47:31 +0000 (14:47 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 4 Dec 2014 13:47:31 +0000 (14:47 +0100)
A test case for YAZ-801

test/test_marc.sh

index 72441fa..5ced525 100755 (executable)
@@ -105,6 +105,14 @@ binmarc_convert() {
     return $ecode
 }
 
+for f in ${srcdir}/marc[0-9].marc; do
+    ../util/yaz-marcdump $f > /dev/null
+    if test $? != "0"; then
+       echo "$f: yaz-marcdump returned error"
+       ecode=1
+    fi
+done
+
 binmarc_convert "marcxml"  "marcxml" "" xml
 echo "binmarc -> marcxml: $?"