7 dmalloc=`which dmalloc`
12 -*) extra_options="$extra_options $1";;
20 if [ -z "$expected_result" ]
25 # For use outside Makefile
30 options=$extra_options
33 options="$options $extra_options"
37 export GCONV_PATH=../ansel:$GCONV_PATH
38 export LD_LIBRARY_PATH=$builddir/../gedcom/.libs:$builddir/../gom/.libs:$LD_LIBRARY_PATH
39 cp $builddir/../ansel/.libs/ANSI_Z39.47.so ../ansel
41 if [ "$GOM_DMALLOC_TEST" = "" ]
43 $builddir/gomtest $options $testfile
45 $dmalloc -b -l dmalloc.log -i 100 low > dmalloc.env
48 $builddir/gomtest_static $options $testfile
51 rm ../ansel/ANSI_Z39.47.so
52 if [ "$result" -eq "$expected_result" -a ! -r core ]