X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=t%2Fanselconv.test;h=c4437a6f56d6746dcca0c59abf78ac06d8902670;hb=c035581ee0617326ce4ff797bfd2e089af44c574;hp=4c54b66d1c4610a074e19e8d32c15bb78c02bbc6;hpb=436cf4be9e0975d3dac70f4b34a65c30141694d9;p=gedcom-parse.git diff --git a/t/anselconv.test b/t/anselconv.test index 4c54b66..c4437a6 100755 --- a/t/anselconv.test +++ b/t/anselconv.test @@ -9,8 +9,8 @@ builddir=`pwd` export GCONV_PATH=.:$GCONV_PATH ln -s $srcdir/../data/gedcom.enc . -ln -s $builddir/../ansel/.libs/ANSI_Z39.47.so . -ln -s $srcdir/../ansel/gconv-modules . +ln -s $builddir/../iconv/glibc/.libs/ANSI_Z39.47.so . +ln -s $srcdir/../iconv/glibc/gconv-modules . retval=0 @@ -19,13 +19,15 @@ then export PATH=$ICONV_PATH:$PATH fi -iconv --from-code=ANSEL --to-code=UTF-8 input/ansel.ged -o anselutf8.out -if ! diff input/anselutf8.ged anselutf8.out +echo "Testing conversion from ANSEL to UTF-8" >> testgedcom.out +iconv -f ANSEL -t UTF-8 input/ansel.ged > anselutf8.out +if ! diff input/anselutf8.ged anselutf8.out >> testgedcom.out then retval=1 else - iconv --to-code=ANSEL --from-code=UTF-8 input/anselutf8.ged -o ansel.out - if ! diff input/ansel.ged ansel.out + echo "Testing conversion from UTF-8 to ANSEL" >> testgedcom.out + iconv -f UTF-8 -t ANSEL input/anselutf8.ged > ansel.out + if ! diff input/ansel.ged ansel.out >> testgedcom.out then retval=1 fi