Avoid 'cd ..'
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 8 Sep 2002 19:16:45 +0000 (19:16 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 8 Sep 2002 19:16:45 +0000 (19:16 +0000)
t/test_script

index ae0aea24f9c7b61c6b41c40bf692b311262b789e..f8f365236629109247fbe1d02b5fc9f0757c87a4 100755 (executable)
@@ -28,19 +28,18 @@ 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
+rm ../ansel/ANSI_Z39.47.so
 if [ "$result" -eq "$expected_result" -a ! -r core ]
 then
   exit 0