]> sourceware.org Git - libabigail.git/commit
Wire the soname check into abicompat
authorDodji Seketeli <dodji@redhat.com>
Mon, 8 Dec 2014 12:36:01 +0000 (13:36 +0100)
committerDodji Seketeli <dodji@redhat.com>
Mon, 8 Dec 2014 12:47:00 +0000 (13:47 +0100)
commit775cfcde0c11ae9dfb37317d97e28cf89e13f583
tree66355bb804ae69079ed183252a0105d967be0e33
parentae98acdb90f4a6098ad39f8c2a1c9c922f50758f
Wire the soname check into abicompat

Now that the comparison engine knows how to take SONAMEs into account
during ABI abi comparison, it's feasible to make abicompat leverage
that capability.  This patch does just that.

* include/abg-comparison.h (corpus_diff::soname_changed): Declare
new member function.
* src/abg-comparison.cc (corpus_diff::soname_changed): Define new
member function.
(corpus_diff::length): Use the new corpus_diff::soname_changed()
method.
* tests/data/test-abicompat/libtest4-soname-changed-v0.so: New
test input data.
* tests/data/test-abicompat/libtest4-soname-changed-v1.so:
Likewise.
* tests/data/test-abicompat/test4-soname-changed-app: Likewise.
* tests/data/test-abicompat/test4-soname-changed-report-0.txt:
Likewise.
* tests/data/test-abicompat/test4-soname-changed-app.cc: Source
code for one of the binaries above.
* tests/data/test-abicompat/test4-soname-changed-v0.cc: Likewise.
* tests/data/test-abicompat/test4-soname-changed-v1.cc: Likewise.
* tests/test-abicompat.cc (in_out_specs): Add the new test input
data to the list of input data to run this harness over.
(main): Take the soname change in account to determine if the
change is ABI incompatible.
* tests/data/Makefile.am: Add the new test input data above to source
distribution.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
12 files changed:
include/abg-comparison.h
src/abg-comparison.cc
tests/data/Makefile.am
tests/data/test-abicompat/libtest4-soname-changed-v0.so [new file with mode: 0755]
tests/data/test-abicompat/libtest4-soname-changed-v1.so [new file with mode: 0755]
tests/data/test-abicompat/test4-soname-changed-app [new file with mode: 0755]
tests/data/test-abicompat/test4-soname-changed-app.cc [new file with mode: 0644]
tests/data/test-abicompat/test4-soname-changed-report-0.txt [new file with mode: 0644]
tests/data/test-abicompat/test4-soname-changed-v0.cc [new file with mode: 0644]
tests/data/test-abicompat/test4-soname-changed-v1.cc [new file with mode: 0644]
tests/test-abicompat.cc
tools/abicompat.cc
This page took 0.034926 seconds and 5 git commands to generate.