Retrieved non-empty version...
[gedcom-parse.git] / t / anselconv.test
index f0e3876159f683551bd4690849c59cf63549f7f0..59cae594e4985f32ff4f63ef4d4a4b513138713f 100755 (executable)
@@ -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 $srcdir/input/ansel.ged > anselutf8.out
+if ! diff $srcdir/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 $srcdir/input/anselutf8.ged > ansel.out
+  if ! diff $srcdir/input/ansel.ged ansel.out >> testgedcom.out
   then
     retval=1
   fi