X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstmarc.sh;h=f1ac1770ba8ace08bf8a69dbf00d9031b6bff9eb;hb=055ee272576c3f33a842adf5a9fdbe00c2c422f0;hp=9e4d119585a6bbbbdda9332bb6838e883f1f5966;hpb=d623f3970b7ddba573bef16f752966c6e93e14ba;p=yaz-moved-to-github.git diff --git a/test/tstmarc.sh b/test/tstmarc.sh index 9e4d119..f1ac177 100755 --- a/test/tstmarc.sh +++ b/test/tstmarc.sh @@ -13,6 +13,11 @@ if test $? = "3"; then noxml=1 fi +../util/yaz-marcdump -o xml,marcxml >/dev/null 2>&1 +if test $? = "4"; then + noxmlwrite=1 +fi + binmarc_convert() { OUTPUT_FORMAT="$1" REVERT_FORMAT="$2" @@ -90,14 +95,19 @@ binmarc_convert() { binmarc_convert "marcxml" "marcxml" "" echo "binmarc -> marcxml: $?" + +if test -z "$noxmlwrite"; then binmarc_convert "xml,marcxml" "marcxml" "xml2" echo "binmarc -> marcxml(libxml2): $?" +fi binmarc_convert "tmarcxml" "tmarcxml" "t" echo "binmarc -> tmarcxml: $?" +if test -z "$noxmlwrite"; then binmarc_convert "xml,tmarcxml" "tmarcxml" "xml2t" echo "binmarc -> tmarcxml(libxml2): $?" +fi exit $ecode