libabigail/tests/runtestcanonicalizetypes.sh.in
Dodji Seketeli dbe88f1103 Fix the new regression test for type canonicalizing
* tests/runtestcanonicalizetypes.sh.in (binaries): Refer to
	abg-tools-utils, not abg-tools-utils.o; the extension is computed
	automatically, depending on the underlying platform.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2015-02-19 11:44:19 +01:00

32 lines
834 B
Bash

#!/bin/sh
# This program launches "abidiff $binary $binary" on multiple
# instances of $binary. The expect result is for the command to show
# an empty result. Otherwise, this program exits with an error and
# outputs some text about the binary on which abidiff failed.
abidiff=@top_builddir@/tools/abidiff
objdir=@top_builddir@/src/.libs
objext=@OBJEXT@
binaries="abg-tools-utils abg-hash abg-ini abg-writer"
outputfile=runtestcanonicalizetypes.output.txt
finaloutputfile=runtestcanonicalizetypes.output.final.txt
cat /dev/null > $outputfile
for i in $binaries;
do
obj=$objdir/$i.$objext
cmd="$abidiff $obj $obj"
`$cmd` > $outputfile
if test -s $outputfile; then
echo $cmd >> $finaloutputfile
cat $outputfile >> $finaloutputfile
fi
done
if test -s $finaloutputfile; then
cat $finaloutputfile
exit 1
fi