11 -*) extra_options="$extra_options $1";;
19 if [ -z "$test_name" ]
23 if [ -z "$expected_result" ]
28 # For use outside Makefile
32 options=$extra_options
34 options="$options $extra_options"
37 outfile=$test_name.out
39 reffile=$srcdir/output/$test_name.ref
40 options="$options -o $outfile"
43 ltcmd="$builddir/../libtool --mode=execute -dlopen $builddir/../gedcom/libgedcom.la"
44 GCONV_PATH=.:$GCONV_PATH
46 ln -s $srcdir/../data/gedcom.enc .
47 ln -s $builddir/../data/new.ged .
48 ln -s $builddir/../iconv/glibc/.libs/ANSI_Z39.47.so .
49 ln -s $srcdir/../iconv/glibc/gconv-modules .
51 echo "======================================================">> $logfile
52 echo "Performing test '$test_name'" >> $logfile
53 $ltcmd $GEDCOM_TESTENV $builddir/src/updatetest $options
60 echo "Result is $result (expected: $expected_result)" >> $logfile
61 if [ "$result" -ne "$expected_result" ]
67 echo "Core file generated!" >> $logfile
70 if diff $outfile $reffile >/dev/null 2>>$logfile
72 echo "Output agrees with reference output" >> $logfile
76 echo "Differences with reference output detected!" >> $logfile