3 # Common test part for the test scripts
5 ltcmd="$builddir/../libtool --mode=execute"
6 for lib in $test_libs $builddir/../utf8/libutf8tools.la
8 ltcmd="$ltcmd -dlopen $lib"
11 echo "======================================================">> $logfile
12 echo "Performing test '$test_name'" >> $logfile
14 if [ "$GEDCOM_NOOPTS" ]
16 echo "Following options would be passed: $options $test_args"
21 $ltcmd $GEDCOM_TESTENV $builddir/src/$test_program $options $test_args
28 echo "Result is $result (expected: $expected_result)" >> $logfile
29 if [ "$result" -ne "$expected_result" ]
31 echo "Not the expected return value!" >> $logfile
36 echo "Core file generated!" >> $logfile
39 if diff $outfile $reffile >/dev/null 2>>$logfile
41 echo "Output agrees with reference output" >> $logfile
45 if diff $gedfile $gedreffile >/dev/null 2>>$logfile
47 echo "Gedcom output agrees with reference output" >> $logfile
51 echo "Differences with reference gedcom output detected!" >> $logfile
57 echo "Differences with reference output detected!" >> $logfile