3 # Common test part for the test scripts
5 ltcmd="$builddir/../libtool --mode=execute"
8 ltcmd="$ltcmd -dlopen $lib"
11 echo "======================================================">> $logfile
12 echo "Performing test '$test_name'" >> $logfile
13 $ltcmd $GEDCOM_TESTENV $builddir/src/$test_program $options $test_args
20 echo "Result is $result (expected: $expected_result)" >> $logfile
21 if [ "$result" -ne "$expected_result" ]
23 echo "Not the expected return value!" >> $logfile
28 echo "Core file generated!" >> $logfile
31 if diff $outfile $reffile >/dev/null 2>>$logfile
33 echo "Output agrees with reference output" >> $logfile
37 echo "Differences with reference output detected!" >> $logfile