11 -*) extra_options="$extra_options $1";;
20 if [ -z "$test_name" ]
24 if [ -z "$expected_result" ]
29 # For use outside Makefile
34 options=$extra_options
37 ./*) testfile=$file ;;
38 *) testfile=$srcdir/input/$file ;;
40 options="$options $extra_options"
43 outfile=$test_name.out
45 reffile=$srcdir/output/$test_name.ref
46 options="$options -o $outfile"
49 ltcmd="$builddir/../libtool --mode=execute -dlopen $builddir/../gedcom/libgedcom.la"
50 GCONV_PATH=.:$GCONV_PATH
54 ln -s $srcdir/../data/gedcom.enc .
55 ln -s $builddir/../iconv/glibc/.libs/ANSI_Z39.47.so .
56 ln -s $srcdir/../iconv/glibc/gconv-modules .
58 echo "======================================================">> $logfile
59 echo "Performing test '$test_name'" >> $logfile
60 $ltcmd $GEDCOM_TESTENV $builddir/src/testgedcom $options $testfile
66 echo "Result is $result (expected: $expected_result)" >> $logfile
67 if [ "$result" -ne "$expected_result" ]
73 echo "Core file generated!" >> $logfile
76 if diff $outfile $reffile >/dev/null 2>>$logfile
78 echo "Output agrees with reference output" >> $logfile
82 echo "Differences with reference output detected!" >> $logfile