projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Documentation for mutex util
[yaz-moved-to-github.git]
/
test
/
tstmarc.sh
diff --git
a/test/tstmarc.sh
b/test/tstmarc.sh
index
6713ca0
..
9e4d119
100755
(executable)
--- a/
test/tstmarc.sh
+++ b/
test/tstmarc.sh
@@
-23,7
+23,8
@@
binmarc_convert() {
NEW=${PREFIX}${fb}.new.xml
OLD=${srcdir}/${PREFIX}${fb}.xml
DIFF=`basename ${f}`.diff
NEW=${PREFIX}${fb}.new.xml
OLD=${srcdir}/${PREFIX}${fb}.xml
DIFF=`basename ${f}`.diff
- ../util/yaz-marcdump -f $CHR -t utf-8 -o ${OUTPUT_FORMAT} $f > $NEW
+ #echo "../util/yaz-marcdump -f $CHR -t utf-8 -i marc -o ${OUTPUT_FORMAT} $f > $NEW"
+ ../util/yaz-marcdump -f $CHR -t utf-8 -i marc -o ${OUTPUT_FORMAT} $f > $NEW
if test $? != "0"; then
echo "$f: yaz-marcdump returned error"
ecode=1
if test $? != "0"; then
echo "$f: yaz-marcdump returned error"
ecode=1
@@
-58,12
+59,12
@@
binmarc_convert() {
OLD=${f}.marc
NEW=`basename ${f}`.new.marc
DIFF=`basename ${f}`.diff
OLD=${f}.marc
NEW=`basename ${f}`.new.marc
DIFF=`basename ${f}`.diff
+ #echo "../util/yaz-marcdump -f utf-8 -t utf-8 -i ${REVERT_FORMAT} -o marc $f > $NEW"
../util/yaz-marcdump -f utf-8 -t utf-8 -i ${REVERT_FORMAT} -o marc $f > $NEW
if test $? != "0"; then
echo "Failed decode of $f"
ecode=1
elif test -f $OLD; then
../util/yaz-marcdump -f utf-8 -t utf-8 -i ${REVERT_FORMAT} -o marc $f > $NEW
if test $? != "0"; then
echo "Failed decode of $f"
ecode=1
elif test -f $OLD; then
-# echo "diff $OLD $NEW "
if diff $OLD $NEW >$DIFF; then
rm $DIFF
rm $NEW
if diff $OLD $NEW >$DIFF; then
rm $DIFF
rm $NEW
@@
-92,10
+93,13
@@
echo "binmarc -> marcxml: $?"
binmarc_convert "xml,marcxml" "marcxml" "xml2"
echo "binmarc -> marcxml(libxml2): $?"
binmarc_convert "xml,marcxml" "marcxml" "xml2"
echo "binmarc -> marcxml(libxml2): $?"
-binmarc_convert "xml,tmarcxml" "tmarcxml" "t"
+binmarc_convert "tmarcxml" "tmarcxml" "t"
echo "binmarc -> tmarcxml: $?"
echo "binmarc -> tmarcxml: $?"
-# exit $ecode
+binmarc_convert "xml,tmarcxml" "tmarcxml" "xml2t"
+echo "binmarc -> tmarcxml(libxml2): $?"
+
+exit $ecode
# Local Variables:
# mode:shell-script
# Local Variables:
# mode:shell-script