libabigail/tests
Ondrej Oprala 125c0c3c7c Bug 19272 - abipkgdiff doesn't report arch change
Previously, architecture change wasn't included in the incompatible
changes check.

This patch makes corpus_diff::has_incompatible_changes take
architecture change into account.

It turns out corpus_diff::has_net_changes wasn't taking architecture
or soname change into account either.  This patch fixes that as well.

The patch also updates abicompat.cc to make it use
corpus_diff::has_net_changes() and
corpus_diff::has_incompatible_changes(), instead of open-coding these
member functions.

	* src/abg-comparison.cc (corpus_diff::has_incompatible_changes):
	The architecture change into account.
	(corpus_diff::has_net_changes): Take architecture and soname
	changes into account.
	* tools/abicompat.cc (perform_compat_check_in_normal_mode): Use
	corpus_diff::{has_net_changes, has_incompatible_changes}.
	* tests/data/test-diff-pkg/dbus-glib-0.104-3.fc23.armv7hl.rpm: New
	test input.
	* tests/data/test-diff-pkg/dbus-glib-0.104-3.fc23.x86_64--dbus-glib-0.104-3.fc23.armv7hl-report-0.txt:
	New test reference output.
 	* tests/data/Makefile.am: Add the new test material above to
	source distribution.
	* tests/test-diff-pkg.cc (in_out_spec): Compare the new package
	above against an x86_64 one.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2016-12-12 19:55:23 +01:00
..
data Bug 19272 - abipkgdiff doesn't report arch change 2016-12-12 19:55:23 +01:00
Makefile.am
mockfedabipkgdiff.in
print-diff-tree.cc
runtestcanonicalizetypes.sh.in
runtestdefaultsupprs.py.in
runtestfedabipkgdiff.py.in Bug 20380 - Compare two local RPMs 2016-12-12 15:21:10 +01:00
test-abicompat.cc
test-abidiff-exit.cc
test-abidiff.cc
test-alt-dwarf-file.cc
test-core-diff.cc
test-diff2.cc
test-diff-dwarf-abixml.cc
test-diff-dwarf.cc Bug 20887 - Show relative change of offsets 2016-12-02 21:29:28 +01:00
test-diff-filter.cc
test-diff-pkg.cc Bug 19272 - abipkgdiff doesn't report arch change 2016-12-12 19:55:23 +01:00
test-diff-suppr.cc A suppressed diff node implies suppressing all equivalent nodes too 2016-11-26 11:54:19 +01:00
test-dot.cc
test-ir-walker.cc
test-lookup-syms.cc
test-read-dwarf.cc Drop suppressed ABI artifacts from the IR 2016-09-21 18:35:08 +02:00
test-read-write.cc Drop suppressed ABI artifacts from the IR 2016-09-21 18:35:08 +02:00
test-svg.cc
test-types-stability.cc
test-utils.cc
test-utils.h
test-valgrind-suppressions.supp
test-write-read-archive.cc
update-test-output.py Rename tests/update-test-read-dwarf-output.py 2016-12-02 12:59:32 +01:00