X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=t%2Fsrc%2Ftest_bulk.sh;h=60156b6dcc61e81ec7f09e156f597e1e42f2fa65;hb=ea81accae13a4617cc46f5256dad50e2732cc206;hp=c4f29e6464c7dfab459f765c9515ec6fdc94c808;hpb=05f0c0416fcaa3ef33a108c1d6660773ccb1d350;p=gedcom-parse.git diff --git a/t/src/test_bulk.sh b/t/src/test_bulk.sh index c4f29e6..60156b6 100644 --- a/t/src/test_bulk.sh +++ b/t/src/test_bulk.sh @@ -3,13 +3,21 @@ # Common test part for the test scripts ltcmd="$builddir/../libtool --mode=execute" -for lib in $test_libs +for lib in $test_libs $builddir/../utf8/libutf8tools.la do ltcmd="$ltcmd -dlopen $lib" done echo "======================================================">> $logfile echo "Performing test '$test_name'" >> $logfile + +if [ "$GEDCOM_NOOPTS" ] +then + echo "Following options would be passed: $options $test_args" + options= + test_args= +fi + $ltcmd $GEDCOM_TESTENV $builddir/src/$test_program $options $test_args result=$? rm gedcom.enc @@ -32,6 +40,18 @@ else then echo "Output agrees with reference output" >> $logfile rm $outfile + if [ "$gedcom_out" ] + then + if diff $gedfile $gedreffile >/dev/null 2>>$logfile + then + echo "Gedcom output agrees with reference output" >> $logfile + rm $gedfile + exit 0 + else + echo "Differences with reference gedcom output detected!" >> $logfile + exit 1 + fi + fi exit 0 else echo "Differences with reference output detected!" >> $logfile