X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=t%2Ftest_script;h=f8f365236629109247fbe1d02b5fc9f0757c87a4;hb=ee5a496b478c18e36351ba68ec451e2271c76680;hp=c5b68159aee3fa4d2959f849bebf25192b536337;hpb=df3831d75a7fbbfd7f178dcf1a4df8539731521a;p=gedcom-parse.git diff --git a/t/test_script b/t/test_script index c5b6815..f8f3652 100755 --- a/t/test_script +++ b/t/test_script @@ -28,19 +28,19 @@ then srcdir=. options=$extra_options else - testfile=t/input/$file + testfile=input/$file options="$options $extra_options" fi builddir=`pwd` -cd $srcdir/.. -export GCONV_PATH=./ansel:$GCONV_PATH +export GCONV_PATH=../ansel:$GCONV_PATH export LD_LIBRARY_PATH=$builddir/../gedcom/.libs:$LD_LIBRARY_PATH -cp $builddir/../ansel/.libs/ANSI_Z39.47.so ansel +cp $builddir/../ansel/.libs/ANSI_Z39.47.so ../ansel +rm -f core $builddir/testgedcom $options $testfile result=$? -rm ansel/ANSI_Z39.47.so -if [ "$result" -eq "$expected_result" ] +rm ../ansel/ANSI_Z39.47.so +if [ "$result" -eq "$expected_result" -a ! -r core ] then exit 0 else