dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Definition of SUB_MAKEFUNC, SUB_ADDFUNC and SUB_DELETEFUNC.
[gedcom-parse.git]
/
t
/
src
/
test_prologue.sh
diff --git
a/t/src/test_prologue.sh
b/t/src/test_prologue.sh
index dfbdb4daabf5e1401d582b8dd505590c420ba03e..d548ea387d6075e8a870d9203b962ba2160d1f65 100644
(file)
--- a/
t/src/test_prologue.sh
+++ b/
t/src/test_prologue.sh
@@
-13,7
+13,7
@@
do
shift
done
shift
done
-test_name=
$1
+test_name=
`echo $1 | sed "s:.*/::" | sed "s:.test::"`
shift
expected_result=$1
shift
shift
expected_result=$1
shift
@@
-25,6
+25,10
@@
if [ -z "$expected_result" ]
then
expected_result=0
fi
then
expected_result=0
fi
+if [ -z "$GEDCOM_LANG" ]
+then
+ GEDCOM_LANG=C
+fi
# For use outside Makefile
if [ -z "$srcdir" ]
# For use outside Makefile
if [ -z "$srcdir" ]
@@
-39,10
+43,17
@@
logfile=check.out
reffile=$srcdir/output/$test_name.ref
options="$options -o $outfile"
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
GCONV_PATH=.:$GCONV_PATH
export GCONV_PATH
-L
ANG=C
-export L
ANG
+L
C_ALL=$GEDCOM_LANG
+export L
C_ALL
ln -s $srcdir/../data/gedcom.enc .
ln -s $builddir/../data/new.ged .
ln -s $builddir/../iconv/glibc/.libs/ANSI_Z39.47.so .
ln -s $srcdir/../data/gedcom.enc .
ln -s $builddir/../data/new.ged .
ln -s $builddir/../iconv/glibc/.libs/ANSI_Z39.47.so .