mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-23 02:02:15 +00:00
dbe88f1103
* 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>
32 lines
834 B
Bash
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
|