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
Announce 2.1.44 for dh_makeshlibs due to new function yaz_marc_write_xml
[yaz-moved-to-github.git]
/
test
/
tstmarciso.sh
diff --git
a/test/tstmarciso.sh
b/test/tstmarciso.sh
index
0ff5022
..
e4d56ea
100755
(executable)
--- a/
test/tstmarciso.sh
+++ b/
test/tstmarciso.sh
@@
-1,5
+1,5
@@
#!/bin/sh
#!/bin/sh
-# $Id: tstmarciso.sh,v 1.3 2006-08-28 12:34:42 adam Exp $
+# $Id: tstmarciso.sh,v 1.4 2006-12-15 19:28:47 adam Exp $
# Tests reading of ISO2709 and checks that we get identical MARCXML
#
# Reads marc?.marc files , Generates marc?.xml files
# Tests reading of ISO2709 and checks that we get identical MARCXML
#
# Reads marc?.marc files , Generates marc?.xml files
@@
-11,7
+11,7
@@
for f in ${srcdir}/marc?.marc; do
NEW=${fb}.new.xml
OLD=${srcdir}/${fb}.xml
DIFF=`basename ${f}`.diff
NEW=${fb}.new.xml
OLD=${srcdir}/${fb}.xml
DIFF=`basename ${f}`.diff
- ../util/yaz-marcdump -f `cat $CHR` -t utf-8 -X $f > $NEW
+ ../util/yaz-marcdump -f `cat $CHR` -t utf-8 -o marcxml $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
@@
-25,7
+25,7
@@
for f in ${srcdir}/marc?.marc; do
fi
else
echo "$f: Making test result $OLD for the first time"
fi
else
echo "$f: Making test result $OLD for the first time"
- if test -x /usr/bin/xmllint; then
+ if test -i marcxml /usr/bin/xmllint; then
if xmllint --noout $NEW >out 2>stderr; then
echo "$f: $NEW is well-formed"
mv $NEW $OLD
if xmllint --noout $NEW >out 2>stderr; then
echo "$f: $NEW is well-formed"
mv $NEW $OLD