]> sourceware.org Git - libabigail.git/commit
Add a --leaf-changes-only option to abipkgdiff
authorDodji Seketeli <dodji@redhat.com>
Mon, 18 Sep 2017 14:00:23 +0000 (16:00 +0200)
committerDodji Seketeli <dodji@redhat.com>
Sun, 8 Oct 2017 16:51:35 +0000 (18:51 +0200)
commitd3ddf609d96f7387f7692b565c49cdf5aeeec94a
tree04de420a786809ef91e9a8347048ad1a658da6c2
parent108a6074a5dfabce2d99cf97123cd0c4c2457e60
Add a --leaf-changes-only option to abipkgdiff

This patch adds the --leaf-changes-only option to abipkgdiff, just
like what we have for abidiff.  The patch also emit leaf changes
report by default when comparing two Linux Kernel packages.

The patch also adds the --impacted-interfaces and --full-impact
options.

* doc/manuals/abipkgdiff.rst: Add documentation for the new
--leaf-change-only, --impacted-interfaces and --full-impact
options.
* tools/abipkgdiff.cc (options::{leaf_changes_only,
show_impacted_interfaces, show_full_impact_report): Add new data
members.
(options::options): Initialize them.
(display_usage): Add help strings for the new --leaf-change-only,
--impacted-interfaces and --full-impact|-f options.
(set_diff_context_from_opts): Set the diff context for the
'leaf-changes-only' and 'show-impacted-interfaces' flags.
(parse_command_line): Parse the --leaf-change-only,
--impacted-interfaces and --full-impact options.  Handle the case
where the --linux-kernel-abi-whitelist|-w option is given a
whitelist *package*.
* tests/data/test-diff-pkg/spice-server-0.12.4-19.el7.x86_64-0.12.8-1.el7.x86_64-report-3.txt:
New test output reference.
* tests/test-diff-pkg.cc (in_out_spec): Compare
data/test-diff-pkg/spice-server-0.12.4-19.el7.x86_64.rpm and
data/test-diff-pkg/spice-server-0.12.8-1.el7.x86_64.rpm with the
new --leaf-changes-only and --impacted-interfaces options, using
the new output reference above.
* tests/data/Makefile.am: Add the new test material to source
distribution.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
doc/manuals/abipkgdiff.rst
tests/data/Makefile.am
tests/data/test-diff-pkg/spice-server-0.12.4-19.el7.x86_64-0.12.8-1.el7.x86_64-report-3.txt [new file with mode: 0644]
tests/test-diff-pkg.cc
tools/abipkgdiff.cc
This page took 0.03645 seconds and 5 git commands to generate.