shift
done
-test_name=$1
+test_name=`echo $1 | sed "s:.*/::" | sed "s:.test::"`
shift
expected_result=$1
shift
then
expected_result=0
fi
+if [ -z "$GEDCOM_LANG" ]
+then
+ GEDCOM_LANG=C
+fi
# For use outside Makefile
if [ -z "$srcdir" ]
reffile=$srcdir/output/$test_name.ref
options="$options -o $outfile"
+if [ "$gedcom_out" ]
+then
+ gedfile=$test_name.ged
+ gedreffile=$srcdir/output/$test_name.ged
+ options="$options -w $gedfile"
+fi
+
GCONV_PATH=.:$GCONV_PATH
export GCONV_PATH
-LANG=C
-export LANG
+LC_ALL=$GEDCOM_LANG
+export LC_ALL
ln -s $srcdir/../data/gedcom.enc .
ln -s $builddir/../data/new.ged .
ln -s $builddir/../iconv/glibc/.libs/ANSI_Z39.47.so .