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
Corrected 'Generated from' string.
[gedcom-parse.git]
/
t
/
test_gom
diff --git
a/t/test_gom
b/t/test_gom
index dd0d0969cfd16fa23d469961074e8c74a2456ea7..9c0b0ceaba08315e5fa2fe611db72e2931b8c7bc 100755
(executable)
--- a/
t/test_gom
+++ b/
t/test_gom
@@
-5,6
+5,7
@@
options="-q"
extra_options=
dmalloc=`which dmalloc`
options="-q"
extra_options=
dmalloc=`which dmalloc`
+dmalloc_tmp=dmalloc.env
while [ $# -gt 0 ]
do
while [ $# -gt 0 ]
do
@@
-29,26
+30,30
@@
then
srcdir=.
options=$extra_options
else
srcdir=.
options=$extra_options
else
- testfile=input/$file
+ testfile=
$srcdir/
input/$file
options="$options $extra_options"
fi
builddir=`pwd`
options="$options $extra_options"
fi
builddir=`pwd`
-export GCONV_PATH=.
./ansel
:$GCONV_PATH
+export GCONV_PATH=.:$GCONV_PATH
export LD_LIBRARY_PATH=$builddir/../gedcom/.libs:$builddir/../gom/.libs:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$builddir/../gedcom/.libs:$builddir/../gom/.libs:$LD_LIBRARY_PATH
-cp $builddir/../ansel/.libs/ANSI_Z39.47.so ../ansel
+ln -s $srcdir/../gedcom.enc .
+ln -s $builddir/../ansel/.libs/ANSI_Z39.47.so .
+ln -s $srcdir/../ansel/gconv-modules .
rm -f core
if [ "$GOM_DMALLOC_TEST" = "" ]
then
$builddir/gomtest $options $testfile
else
rm -f core
if [ "$GOM_DMALLOC_TEST" = "" ]
then
$builddir/gomtest $options $testfile
else
- $dmalloc -b -l
dmalloc.log -i 100 low > dmalloc.env
- .
dmalloc.env
- rm
dmalloc.env
+ $dmalloc -b -l
$GOM_DMALLOC_TEST -i 100 low > $dmalloc_tmp
+ .
$dmalloc_tmp
+ rm
$dmalloc_tmp
$builddir/gomtest_static $options $testfile
fi
result=$?
$builddir/gomtest_static $options $testfile
fi
result=$?
-rm ../ansel/ANSI_Z39.47.so
+rm gedcom.enc
+rm ANSI_Z39.47.so
+rm gconv-modules
if [ "$result" -eq "$expected_result" -a ! -r core ]
then
exit 0
if [ "$result" -eq "$expected_result" -a ! -r core ]
then
exit 0