7 dmalloc=`which dmalloc`
8 dmalloc_tmp=dmalloc.env
13 -*) extra_options="$extra_options $1";;
21 if [ -z "$expected_result" ]
26 # For use outside Makefile
31 options=$extra_options
33 testfile=$srcdir/input/$file
34 options="$options $extra_options"
38 export GCONV_PATH=.:$GCONV_PATH
39 export LD_LIBRARY_PATH=$builddir/../gedcom/.libs:$builddir/../gom/.libs:$LD_LIBRARY_PATH
40 ln -s $srcdir/../data/gedcom.enc .
41 ln -s $builddir/../ansel/.libs/ANSI_Z39.47.so .
42 ln -s $srcdir/../ansel/gconv-modules .
44 if [ "$GOM_DMALLOC_TEST" = "" ]
46 $GEDCOM_TESTENV $builddir/src/gomtest $options $testfile
48 $dmalloc -b -l $GOM_DMALLOC_TEST -i 100 low > $dmalloc_tmp
51 $GEDCOM_TESTENV $builddir/src/gomtest_static $options $testfile
57 if [ "$result" -eq "$expected_result" -a ! -r core ]