Generated for release 0.17.
[gedcom-parse.git] / t / test_script
index c5b68159aee3fa4d2959f849bebf25192b536337..0623403ac034204c30243a2731ccbad575fbfabb 100755 (executable)
@@ -28,19 +28,23 @@ then
   srcdir=.
   options=$extra_options
 else
-  testfile=t/input/$file
+  testfile=$srcdir/input/$file
   options="$options $extra_options"
 fi
 
 builddir=`pwd`
-cd $srcdir/..
-export GCONV_PATH=./ansel:$GCONV_PATH
+export GCONV_PATH=.:$GCONV_PATH
 export LD_LIBRARY_PATH=$builddir/../gedcom/.libs:$LD_LIBRARY_PATH
-cp $builddir/../ansel/.libs/ANSI_Z39.47.so ansel
+ln -s $srcdir/../gedcom.enc .
+ln -s $builddir/../ansel/.libs/ANSI_Z39.47.so .
+ln -s $srcdir/../ansel/gconv-modules .
+rm -f core
 $builddir/testgedcom $options $testfile
 result=$?
-rm ansel/ANSI_Z39.47.so
-if [ "$result" -eq "$expected_result" ]
+rm gedcom.enc
+rm ANSI_Z39.47.so
+rm gconv-modules
+if [ "$result" -eq "$expected_result" -a ! -r core ]
 then
   exit 0
 else