projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d623f39
)
MARC test: Skip write using Libxml2 if unsupported
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 23 Mar 2010 12:04:38 +0000
(13:04 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 23 Mar 2010 12:04:38 +0000
(13:04 +0100)
test/tstmarc.sh
patch
|
blob
|
history
diff --git
a/test/tstmarc.sh
b/test/tstmarc.sh
index
9e4d119
..
f1ac177
100755
(executable)
--- a/
test/tstmarc.sh
+++ b/
test/tstmarc.sh
@@
-13,6
+13,11
@@
if test $? = "3"; then
noxml=1
fi
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"
binmarc_convert() {
OUTPUT_FORMAT="$1"
REVERT_FORMAT="$2"
@@
-90,14
+95,19
@@
binmarc_convert() {
binmarc_convert "marcxml" "marcxml" ""
echo "binmarc -> marcxml: $?"
binmarc_convert "marcxml" "marcxml" ""
echo "binmarc -> marcxml: $?"
+
+if test -z "$noxmlwrite"; then
binmarc_convert "xml,marcxml" "marcxml" "xml2"
echo "binmarc -> marcxml(libxml2): $?"
binmarc_convert "xml,marcxml" "marcxml" "xml2"
echo "binmarc -> marcxml(libxml2): $?"
+fi
binmarc_convert "tmarcxml" "tmarcxml" "t"
echo "binmarc -> tmarcxml: $?"
binmarc_convert "tmarcxml" "tmarcxml" "t"
echo "binmarc -> tmarcxml: $?"
+if test -z "$noxmlwrite"; then
binmarc_convert "xml,tmarcxml" "tmarcxml" "xml2t"
echo "binmarc -> tmarcxml(libxml2): $?"
binmarc_convert "xml,tmarcxml" "tmarcxml" "xml2t"
echo "binmarc -> tmarcxml(libxml2): $?"
+fi
exit $ecode
exit $ecode