5 # For use outside Makefile
12 GCONV_PATH=.:$GCONV_PATH
14 ln -s $srcdir/../data/gedcom.enc .
15 ln -s $builddir/../iconv/glibc/.libs/ANSI_Z39.47.so .
16 ln -s $srcdir/../iconv/glibc/gconv-modules .
22 PATH=$ICONV_PATH:$PATH
26 echo "======================================================">> $logfile
27 echo "Performing test 'anselconv'" >> $logfile
28 echo "Testing conversion from ANSEL to UTF-8" >> $logfile
29 iconv -f ANSEL -t UTF-8 $srcdir/input/ansel.ged > anselconv_utf8.out
30 if diff $srcdir/input/anselutf8.ged anselconv_utf8.out >/dev/null 2>> $logfile
32 echo "Output agrees with reference output" >> $logfile
34 echo "Testing conversion from UTF-8 to ANSEL" >> $logfile
35 iconv -f UTF-8 -t ANSEL $srcdir/input/anselutf8.ged > anselconv_ansel.out
36 if diff $srcdir/input/ansel.ged anselconv_ansel.out >dev/null 2>> $logfile
38 echo "Output agrees with reference output" >> $logfile
39 rm anselconv_ansel.out
41 echo "Difference with reference output detected!" >> $logfile
45 echo "Difference with reference output detected!" >> $logfile