#!/bin/sh
-$srcdir/src/test_script -2 allged.ged allged 0
+$srcdir/src/test_script -2 allged 0 allged.ged
#!/bin/sh
-$srcdir/src/test_gom allged.ged allged_gom 0
+$srcdir/src/test_gom allged_gom 0 allged.ged
#!/bin/sh
-$srcdir/src/test_script -2 ansel.ged ansel 0
+$srcdir/src/test_script -2 ansel 0 ansel.ged
#!/bin/sh
-$srcdir/src/test_gom ansel.ged ansel_gom 0
+$srcdir/src/test_gom ansel_gom 0 ansel.ged
#!/bin/sh
cp $srcdir/input/bogus.ged bogus.ged
-$srcdir/src/test_script -2 -b minimal.ged bogus 0
+$srcdir/src/test_script -2 -b bogus 0 minimal.ged
result=$?
rm bogus.ged
exit $result
#!/bin/sh
-$srcdir/src/test_script -2 dates.ged dates 0
+$srcdir/src/test_script -2 dates 0 dates.ged
#!/bin/sh
-$srcdir/src/test_gom dates.ged dates_gom 0
+$srcdir/src/test_gom dates_gom 0 dates.ged
#!/bin/sh
-$srcdir/src/test_script -2 -fn encoding_error.ged encoding_error 0
+$srcdir/src/test_script -2 -fn encoding_error 0 encoding_error.ged
#!/bin/sh
-$srcdir/src/test_script ./file_not_exist.ged file_not_exist 1
+$srcdir/src/test_script file_not_exist 1 ./file_not_exist.ged
#!/bin/sh
-$srcdir/src/test_script -2 line_nr.ged line_nr 1
+$srcdir/src/test_script -2 line_nr 1 line_nr.ged
#!/bin/sh
-$srcdir/src/test_script -2 minimal.ged minimal 0
+$srcdir/src/test_script -2 minimal 0 minimal.ged
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
srcdir=.
options=$extra_options
else
- testfile=$srcdir/input/$file
+ case $file in
+ ./*) testfile=$file ;;
+ *) testfile=$srcdir/input/$file ;;
+ esac
options="$options $extra_options"
fi
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 .
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
#!/bin/sh
-$srcdir/src/test_script -2 uhlbomcl.ged uhlbomcl 0
+$srcdir/src/test_script -2 uhlbomcl 0 uhlbomcl.ged
#!/bin/sh
-$srcdir/src/test_gom uhlbomcl.ged uhlbomcl_gom 0
+$srcdir/src/test_gom uhlbomcl_gom 0 uhlbomcl.ged
#!/bin/sh
-$srcdir/src/test_script -2 uhlcl.ged uhlcl 0
+$srcdir/src/test_script -2 uhlcl 0 uhlcl.ged
#!/bin/sh
-$srcdir/src/test_gom uhlcl.ged uhlcl_gom 0
+$srcdir/src/test_gom uhlcl_gom 0 uhlcl.ged
#!/bin/sh
-$srcdir/src/test_script -2 ulhbomcl.ged ulhbomcl 0
+$srcdir/src/test_script -2 ulhbomcl 0 ulhbomcl.ged
#!/bin/sh
-$srcdir/src/test_gom ulhbomcl.ged ulhbomcl_gom 0
+$srcdir/src/test_gom ulhbomcl_gom 0 ulhbomcl.ged
#!/bin/sh
-$srcdir/src/test_script -2 ulhc.ged ulhc 0
+$srcdir/src/test_script -2 ulhc 0 ulhc.ged
#!/bin/sh
-$srcdir/src/test_gom ulhc.ged ulhc_gom 0
+$srcdir/src/test_gom ulhc_gom 0 ulhc.ged
#!/bin/sh
-$srcdir/src/test_script -2 ulhcl.ged ulhcl 0
+$srcdir/src/test_script -2 ulhcl 0 ulhcl.ged
#!/bin/sh
-$srcdir/src/test_gom ulhcl.ged ulhcl_gom 0
+$srcdir/src/test_gom ulhcl_gom 0 ulhcl.ged
#!/bin/sh
-$srcdir/src/test_script -2 ulhl.ged ulhl 0
+$srcdir/src/test_script -2 ulhl 0 ulhl.ged
#!/bin/sh
-$srcdir/src/test_gom ulhl.ged ulhl_gom 0
+$srcdir/src/test_gom ulhl_gom 0 ulhl.ged
#!/bin/sh
-$srcdir/src/test_script -2 ulhlc.ged ulhlc 0
+$srcdir/src/test_script -2 ulhlc 0 ulhlc.ged
#!/bin/sh
-$srcdir/src/test_gom ulhlc.ged ulhlc_gom 0
+$srcdir/src/test_gom ulhlc_gom 0 ulhlc.ged
#!/bin/sh
-$srcdir/src/test_script unknown.ged unknown 1
+$srcdir/src/test_script unknown 1 unknown.ged
#!/bin/sh
-$srcdir/src/test_script -fn unknown.ged unknown_ignore_errors 0
+$srcdir/src/test_script -fn unknown_ignore_errors 0 unknown.ged