Moved file argument to last position.
[gedcom-parse.git] / t / src / test_gom
index 7cfd657c893d723105c96c262fa9ec80809c2233..90f4b4bfdb26cf5435935cf1ce182b21f3242fca 100755 (executable)
@@ -14,9 +14,9 @@ do
   shift
 done
 
-file=$1
-test_name=$2
-expected_result=$3
+test_name=$1
+expected_result=$2
+file=$3
 if [ -z "$test_name" ]
 then
   test_name=check
@@ -33,7 +33,10 @@ then
   srcdir=.
   options=$extra_options
 else
-  testfile=$srcdir/input/$file
+  case $file in
+    ./*) testfile=$file ;;
+    *)   testfile=$srcdir/input/$file ;;
+  esac
   options="$options $extra_options"
 fi
 
@@ -46,6 +49,8 @@ builddir=`pwd`
 ltcmd="$builddir/../libtool --mode=execute -dlopen $builddir/../gedcom/libgedcom.la -dlopen $builddir/../gom/libgedcom_gom.la"
 GCONV_PATH=.:$GCONV_PATH
 export GCONV_PATH
+LANG=C
+export LANG
 ln -s $srcdir/../data/gedcom.enc .
 ln -s $builddir/../iconv/glibc/.libs/ANSI_Z39.47.so .
 ln -s $srcdir/../iconv/glibc/gconv-modules .