2 # Tests reading of a bunch of non-roman UTF-8 ISO2709 and see if
3 # we can encode it in MARC-8
5 # Reads marccol?.u8.marc files , Generates marccol?.u8.{1,2}.lst
8 for f in ${srcdir}/marccol?.u8.marc; do
10 fb=`basename ${f} .marc`
14 OLD=${srcdir}/${fb}.1.lst
15 ../util/yaz-marcdump -f utf-8 -t utf-8 $f >$NEW
16 if test $? != "0"; then
17 echo "$f: yaz-marcdump returned error"
20 elif test -f $OLD; then
21 if diff $OLD $NEW >$DIFF; then
25 echo "$f: $NEW and $OLD differ"
29 echo "$f: Making test result $OLD for the first time"
33 filem=`echo $fb | sed 's/u8/m8/'`.marc
34 ../util/yaz-marcdump -o marc -f utf8 -t marc8lossless $f >$filem
38 OLD=${srcdir}/${fb}.2.lst
39 ../util/yaz-marcdump -f marc8 -t utf-8 $filem >$NEW
40 if test $? != "0"; then
41 echo "$f: yaz-marcdump returned error"
44 elif test -f $OLD; then
45 if diff $OLD $NEW >$DIFF; then
50 echo "$f: $NEW and $OLD differ"
54 echo "$f: Making test result $OLD for the first time"