mirror of
git://sourceware.org/git/libabigail.git
synced 2025-01-26 19:23:17 +00:00
0fb03efa85
* update-copyright.sh: Update the date in this script. Running the script then yields the changes below. * include/abg-btf-reader.h: Update copyright year as a result of running update-copyright.sh above. * include/abg-comp-filter.h: Likewise. * include/abg-comparison.h: Likewise. * include/abg-config.h: Likewise. * include/abg-corpus.h: Likewise. * include/abg-ctf-reader.h: Likewise. * include/abg-cxx-compat.h: Likewise. * include/abg-diff-utils.h: Likewise. * include/abg-dwarf-reader.h: Likewise. * include/abg-elf-based-reader.h: Likewise. * include/abg-elf-reader.h: Likewise. * include/abg-fe-iface.h: Likewise. * include/abg-fwd.h: Likewise. * include/abg-hash.h: Likewise. * include/abg-ini.h: Likewise. * include/abg-interned-str.h: Likewise. * include/abg-ir.h: Likewise. * include/abg-libxml-utils.h: Likewise. * include/abg-reader.h: Likewise. * include/abg-regex.h: Likewise. * include/abg-reporter.h: Likewise. * include/abg-sptr-utils.h: Likewise. * include/abg-suppression.h: Likewise. * include/abg-tools-utils.h: Likewise. * include/abg-traverse.h: Likewise. * include/abg-viz-common.h: Likewise. * include/abg-viz-dot.h: Likewise. * include/abg-viz-svg.h: Likewise. * include/abg-workers.h: Likewise. * include/abg-writer.h: Likewise. * src/abg-btf-reader.cc: Likewise. * src/abg-comp-filter.cc: Likewise. * src/abg-comparison-priv.h: Likewise. * src/abg-comparison.cc: Likewise. * src/abg-config.cc: Likewise. * src/abg-corpus-priv.h: Likewise. * src/abg-corpus.cc: Likewise. * src/abg-ctf-reader.cc: Likewise. * src/abg-default-reporter.cc: Likewise. * src/abg-diff-utils.cc: Likewise. * src/abg-dwarf-reader.cc: Likewise. * src/abg-elf-based-reader.cc: Likewise. * src/abg-elf-helpers.cc: Likewise. * src/abg-elf-helpers.h: Likewise. * src/abg-elf-reader.cc: Likewise. * src/abg-fe-iface.cc: Likewise. * src/abg-hash.cc: Likewise. * src/abg-ini.cc: Likewise. * src/abg-internal.h: Likewise. * src/abg-ir-priv.h: Likewise. * src/abg-ir.cc: Likewise. * src/abg-leaf-reporter.cc: Likewise. * src/abg-libxml-utils.cc: Likewise. * src/abg-reader.cc: Likewise. * src/abg-regex.cc: Likewise. * src/abg-reporter-priv.cc: Likewise. * src/abg-reporter-priv.h: Likewise. * src/abg-suppression-priv.h: Likewise. * src/abg-suppression.cc: Likewise. * src/abg-symtab-reader.cc: Likewise. * src/abg-symtab-reader.h: Likewise. * src/abg-tools-utils.cc: Likewise. * src/abg-traverse.cc: Likewise. * src/abg-viz-common.cc: Likewise. * src/abg-viz-dot.cc: Likewise. * src/abg-viz-svg.cc: Likewise. * src/abg-workers.cc: Likewise. * src/abg-writer.cc: Likewise. * tests/print-diff-tree.cc: Likewise. * tests/test-abicompat.cc: Likewise. * tests/test-abidiff-exit.cc: Likewise. * tests/test-abidiff.cc: Likewise. * tests/test-alt-dwarf-file.cc: Likewise. * tests/test-core-diff.cc: Likewise. * tests/test-cxx-compat.cc: Likewise. * tests/test-diff-dwarf-abixml.cc: Likewise. * tests/test-diff-dwarf.cc: Likewise. * tests/test-diff-filter.cc: Likewise. * tests/test-diff-pkg.cc: Likewise. * tests/test-diff-suppr.cc: Likewise. * tests/test-diff2.cc: Likewise. * tests/test-dot.cc: Likewise. * tests/test-elf-helpers.cc: Likewise. * tests/test-ini.cc: Likewise. * tests/test-ir-walker.cc: Likewise. * tests/test-kmi-whitelist.cc: Likewise. * tests/test-lookup-syms.cc: Likewise. * tests/test-read-btf.cc: Likewise. * tests/test-read-ctf.cc: Likewise. * tests/test-read-dwarf.cc: Likewise. * tests/test-read-write.cc: Likewise. * tests/test-svg.cc: Likewise. * tests/test-symtab-reader.cc: Likewise. * tests/test-symtab.cc: Likewise. * tests/test-tools-utils.cc: Likewise. * tests/test-types-stability.cc: Likewise. * tests/test-utils.cc: Likewise. * tests/test-utils.h: Likewise. * tools/abicompat.cc: Likewise. * tools/abidiff.cc: Likewise. * tools/abidw.cc: Likewise. * tools/abilint.cc: Likewise. * tools/abipkgdiff.cc: Likewise. * tools/abisym.cc: Likewise. * tools/binilint.cc: Likewise. * tools/fedabipkgdiff: Likewise. * tools/kmidiff.cc: Likewise. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
1613 lines
44 KiB
C++
1613 lines
44 KiB
C++
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
// -*- Mode: C++ -*-
|
|
//
|
|
// Copyright (C) 2016-2024 Red Hat, Inc.
|
|
//
|
|
// Author: Dodji Seketeli
|
|
|
|
/// @file
|
|
///
|
|
/// This program runs abidiff between input files and checks that
|
|
/// the exit code of the abidiff is the one we expect.
|
|
///
|
|
/// The set of input files and reference reports to consider should be
|
|
/// present in the source distribution.
|
|
|
|
/// This is an aggregate that specifies where a test shall get its
|
|
/// input from and where it shall write its ouput to.
|
|
|
|
#include <sys/wait.h>
|
|
#include <cstring>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <fstream>
|
|
#include <iostream>
|
|
#include <cstdlib>
|
|
#include "abg-tools-utils.h"
|
|
#include "test-utils.h"
|
|
|
|
using abigail::tools_utils::abidiff_status;
|
|
using abigail::tests::emit_test_status_and_update_counters;
|
|
using abigail::tests::emit_test_summary;
|
|
|
|
struct InOutSpec
|
|
{
|
|
const char* in_elfv0_path;
|
|
const char* in_elfv1_path;
|
|
const char* in_suppr_path;
|
|
const char* in_elfv0_headers_dirs;
|
|
const char* in_elfv1_headers_dirs;
|
|
const char* in_elfv0_debug_dir;
|
|
const char* in_elfv1_debug_dir;
|
|
const char* in_elfv0_added_bins_dir;
|
|
const char* in_elfv1_added_bins_dir;
|
|
const char* abidiff_options;
|
|
abidiff_status status;
|
|
const char* in_report_path;
|
|
const char* out_report_path;
|
|
};// end struct InOutSpec;
|
|
|
|
InOutSpec in_out_specs[] =
|
|
{
|
|
{
|
|
"data/test-abidiff-exit/test1-voffset-change-v0.o",
|
|
"data/test-abidiff-exit/test1-voffset-change-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --no-show-locs",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE
|
|
| abigail::tools_utils::ABIDIFF_ABI_INCOMPATIBLE_CHANGE,
|
|
"data/test-abidiff-exit/test1-voffset-change-report0.txt",
|
|
"output/test-abidiff-exit/test1-voffset-change-report0.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test1-voffset-change-v0.o",
|
|
"data/test-abidiff-exit/test1-voffset-change-v1.o",
|
|
"data/test-abidiff-exit/test1-voffset-change.abignore",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --no-show-locs",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/test1-voffset-change-report1.txt",
|
|
"output/test-abidiff-exit/test1-voffset-change-report1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test2-filtered-removed-fns-v0.o",
|
|
"data/test-abidiff-exit/test2-filtered-removed-fns-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --no-show-locs",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE
|
|
| abigail::tools_utils::ABIDIFF_ABI_INCOMPATIBLE_CHANGE,
|
|
"data/test-abidiff-exit/test2-filtered-removed-fns-report0.txt",
|
|
"output/test-abidiff-exit/test2-filtered-removed-fns-report0.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test2-filtered-removed-fns-v0.o",
|
|
"data/test-abidiff-exit/test2-filtered-removed-fns-v1.o",
|
|
"data/test-abidiff-exit/test2-filtered-removed-fns.abignore",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --no-show-locs",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/test2-filtered-removed-fns-report1.txt",
|
|
"output/test-abidiff-exit/test2-filtered-removed-fns-report1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-loc-v0.bi",
|
|
"data/test-abidiff-exit/test-loc-v1.bi",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-loc-with-locs-report.txt",
|
|
"output/test-abidiff-exit/test-loc-with-locs-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-loc-v0.bi",
|
|
"data/test-abidiff-exit/test-loc-v1.bi",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-show-locs",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-loc-without-locs-report.txt",
|
|
"output/test-abidiff-exit/test-loc-without-locs-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-no-stray-comma-v0.o",
|
|
"data/test-abidiff-exit/test-no-stray-comma-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-no-stray-comma-report.txt",
|
|
"output/test-abidiff-exit/test-no-stray-comma-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-leaf-stats-v0.o",
|
|
"data/test-abidiff-exit/test-leaf-stats-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-show-locs --leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-leaf-stats-report.txt",
|
|
"output/test-abidiff-exit/test-leaf-stats-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-leaf-more-v0.o",
|
|
"data/test-abidiff-exit/test-leaf-more-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-show-locs --leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE
|
|
| abigail::tools_utils::ABIDIFF_ABI_INCOMPATIBLE_CHANGE,
|
|
"data/test-abidiff-exit/test-leaf-more-report.txt",
|
|
"output/test-abidiff-exit/test-leaf-more-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-leaf-fun-type-v0.o",
|
|
"data/test-abidiff-exit/test-leaf-fun-type-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-show-locs --leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-leaf-fun-type-report.txt",
|
|
"output/test-abidiff-exit/test-leaf-fun-type-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-leaf-redundant-v0.o",
|
|
"data/test-abidiff-exit/test-leaf-redundant-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-leaf-redundant-report.txt",
|
|
"output/test-abidiff-exit/test-leaf-redundant-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-leaf-peeling-v0.o",
|
|
"data/test-abidiff-exit/test-leaf-peeling-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-leaf-peeling-report.txt",
|
|
"output/test-abidiff-exit/test-leaf-peeling-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-leaf-cxx-members-v0.o",
|
|
"data/test-abidiff-exit/test-leaf-cxx-members-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE
|
|
| abigail::tools_utils::ABIDIFF_ABI_INCOMPATIBLE_CHANGE,
|
|
"data/test-abidiff-exit/test-leaf-cxx-members-report.txt",
|
|
"output/test-abidiff-exit/test-leaf-cxx-members-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-member-size-v0.o",
|
|
"data/test-abidiff-exit/test-member-size-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-member-size-report0.txt",
|
|
"output/test-abidiff-exit/test-member-size-report0.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-member-size-v0.o",
|
|
"data/test-abidiff-exit/test-member-size-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-member-size-report1.txt",
|
|
"output/test-abidiff-exit/test-member-size-report1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-decl-struct-v0.o",
|
|
"data/test-abidiff-exit/test-decl-struct-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--harmless",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-decl-struct-report.txt",
|
|
"output/test-abidiff-exit/test-decl-struct-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-fun-param-v0.abi",
|
|
"data/test-abidiff-exit/test-fun-param-v1.abi",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-fun-param-report.txt",
|
|
"output/test-abidiff-exit/test-fun-param-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-decl-enum-v0.o",
|
|
"data/test-abidiff-exit/test-decl-enum-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--harmless",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-decl-enum-report.txt",
|
|
"output/test-abidiff-exit/test-decl-enum-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-decl-enum-v0.o",
|
|
"data/test-abidiff-exit/test-decl-enum-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/test-decl-enum-report-2.txt",
|
|
"output/test-abidiff-exit/test-decl-enum-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-decl-enum-v0.o",
|
|
"data/test-abidiff-exit/test-decl-enum-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/test-decl-enum-report-3.txt",
|
|
"output/test-abidiff-exit/test-decl-enum-report-3.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-net-change-v0.o",
|
|
"data/test-abidiff-exit/test-net-change-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --no-show-locs",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE
|
|
| abigail::tools_utils::ABIDIFF_ABI_INCOMPATIBLE_CHANGE,
|
|
"data/test-abidiff-exit/test-net-change-report0.txt",
|
|
"output/test-abidiff-exit/test-net-change-report0.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-net-change-v0.o",
|
|
"data/test-abidiff-exit/test-net-change-v1.o",
|
|
"data/test-abidiff-exit/test-net-change.abignore",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --no-show-locs",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/test-net-change-report1.txt",
|
|
"output/test-abidiff-exit/test-net-change-report1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-net-change-v0.o",
|
|
"data/test-abidiff-exit/test-net-change-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --no-show-locs --leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE
|
|
| abigail::tools_utils::ABIDIFF_ABI_INCOMPATIBLE_CHANGE,
|
|
"data/test-abidiff-exit/test-net-change-report2.txt",
|
|
"output/test-abidiff-exit/test-net-change-report2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-net-change-v0.o",
|
|
"data/test-abidiff-exit/test-net-change-v1.o",
|
|
"data/test-abidiff-exit/test-net-change.abignore",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --no-show-locs --leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/test-net-change-report3.txt",
|
|
"output/test-abidiff-exit/test-net-change-report3.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-headers-dirs/test-headers-dir-v0.o",
|
|
"data/test-abidiff-exit/test-headers-dirs/test-headers-dir-v1.o",
|
|
"",
|
|
"data/test-abidiff-exit/test-headers-dirs/headers-a",
|
|
"data/test-abidiff-exit/test-headers-dirs/headers-a",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/test-headers-dirs/test-headers-dir-report-1.txt",
|
|
"output/test-abidiff-exit/test-headers-dirs/test-headers-dir-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-headers-dirs/test-headers-dir-v0.o",
|
|
"data/test-abidiff-exit/test-headers-dirs/test-headers-dir-v1.o",
|
|
"",
|
|
"data/test-abidiff-exit/test-headers-dirs/headers-a, "
|
|
"data/test-abidiff-exit/test-headers-dirs/headers-b",
|
|
"data/test-abidiff-exit/test-headers-dirs/headers-a, "
|
|
"data/test-abidiff-exit/test-headers-dirs/headers-b",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-headers-dirs/test-headers-dir-report-2.txt",
|
|
"output/test-abidiff-exit/test-headers-dirs/test-headers-dir-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/qualifier-typedef-array-v0.o",
|
|
"data/test-abidiff-exit/qualifier-typedef-array-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/qualifier-typedef-array-report-0.txt",
|
|
"output/test-abidiff-exit/qualifier-typedef-array-report-0.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/qualifier-typedef-array-v0.o",
|
|
"data/test-abidiff-exit/qualifier-typedef-array-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--harmless",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/qualifier-typedef-array-report-1.txt",
|
|
"output/test-abidiff-exit/qualifier-typedef-array-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/qualifier-typedef-array-v0.o",
|
|
"data/test-abidiff-exit/qualifier-typedef-array-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/qualifier-typedef-array-report-2.txt",
|
|
"output/test-abidiff-exit/qualifier-typedef-array-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/qualifier-typedef-array-v0.o",
|
|
"data/test-abidiff-exit/qualifier-typedef-array-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--harmless --leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/qualifier-typedef-array-report-3.txt",
|
|
"output/test-abidiff-exit/qualifier-typedef-array-report-3.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-non-leaf-array-v0.o",
|
|
"data/test-abidiff-exit/test-non-leaf-array-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-non-leaf-array-report.txt",
|
|
"output/test-abidiff-exit/test-non-leaf-array-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-crc-v0.abi",
|
|
"data/test-abidiff-exit/test-crc-v1.abi",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-crc-report.txt",
|
|
"output/test-abidiff-exit/test-crc-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-missing-alias.abi",
|
|
"data/test-abidiff-exit/test-missing-alias.abi",
|
|
"data/test-abidiff-exit/test-missing-alias.suppr",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/test-missing-alias-report.txt",
|
|
"output/test-abidiff-exit/test-missing-alias-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-PR28316-v0.o",
|
|
"data/test-abidiff-exit/test-PR28316-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --harmless",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-PR28316-report.txt",
|
|
"output/test-abidiff-exit/test-PR28316-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-PR29144-v0.o",
|
|
"data/test-abidiff-exit/test-PR29144-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --harmless",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-PR29144-report.txt",
|
|
"output/test-abidiff-exit/test-PR29144-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-PR29144-v0.o",
|
|
"data/test-abidiff-exit/test-PR29144-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--leaf-changes-only --no-default-suppression --harmless",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-PR29144-report-2.txt",
|
|
"output/test-abidiff-exit/test-PR29144-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/ld-2.28-210.so",
|
|
"data/test-abidiff-exit/ld-2.28-211.so",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-ld-2.28-210.so--ld-2.28-211.so.txt",
|
|
"output/test-abidiff-exit/test-ld-2.28-210.so--ld-2.28-211.so.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-rhbz2114909-v0.o",
|
|
"data/test-abidiff-exit/test-rhbz2114909-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-rhbz2114909-report-1.txt",
|
|
"output/test-abidiff-exit/test-rhbz2114909-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/PR30048-test-v0.o",
|
|
"data/test-abidiff-exit/PR30048-test-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/PR30048-test-report-0.txt",
|
|
"output/test-abidiff-exit/PR30048-test-report-0.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/PR30048-test-2-v0.o",
|
|
"data/test-abidiff-exit/PR30048-test-2-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/PR30048-test-2-report-1.txt",
|
|
"output/test-abidiff-exit/PR30048-test-2-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-array-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-array-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-allow-type-array-v0--v1-report-1.txt",
|
|
"output/test-abidiff-exit/test-allow-type-array-v0--v1-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-array-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-array-v1.o",
|
|
"data/test-abidiff-exit/test-allow-type-array-suppr.txt",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/test-allow-type-array-v0--v1-report-2.txt",
|
|
"output/test-abidiff-exit/test-allow-type-array-v0--v1-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-array-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-array-v2.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-allow-type-array-v0--v2-report-1.txt",
|
|
"output/test-abidiff-exit/test-allow-type-array-v0--v2-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-array-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-array-v2.o",
|
|
"data/test-abidiff-exit/test-allow-type-array-suppr.txt",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-allow-type-array-v0--v2-report-2.txt",
|
|
"output/test-abidiff-exit/test-allow-type-array-v0--v2-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-array-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-array-v3.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-allow-type-array-v0--v3-report-1.txt",
|
|
"output/test-abidiff-exit/test-allow-type-array-v0--v3-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-array-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-array-v3.o",
|
|
"data/test-abidiff-exit/test-allow-type-array-suppr.txt",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/test-allow-type-array-v0--v3-report-2.txt",
|
|
"output/test-abidiff-exit/test-allow-type-array-v0--v3-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-region-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-allow-type-region-v0--v1-report-1.txt",
|
|
"output/test-abidiff-exit/test-allow-type-region-v0--v1-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-region-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-v1.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-suppr.txt",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/test-allow-type-region-v0--v1-report-2.txt",
|
|
"output/test-abidiff-exit/test-allow-type-region-v0--v1-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-region-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-v2.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-allow-type-region-v0--v2-report-1.txt",
|
|
"output/test-abidiff-exit/test-allow-type-region-v0--v2-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-region-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-v2.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-allow-type-region-v0--v2-report-1.txt",
|
|
"output/test-abidiff-exit/test-allow-type-region-v0--v2-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-region-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-v2.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-suppr.txt",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-allow-type-region-v0--v2-report-2.txt",
|
|
"output/test-abidiff-exit/test-allow-type-region-v0--v2-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-region-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-v3.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-allow-type-region-v0--v3-report-1.txt",
|
|
"output/test-abidiff-exit/test-allow-type-region-v0--v3-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-region-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-v3.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-suppr.txt",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-allow-type-region-v0--v3-report-2.txt",
|
|
"output/test-abidiff-exit/test-allow-type-region-v0--v3-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-region-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-v4.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-allow-type-region-v0--v4-report-1.txt",
|
|
"output/test-abidiff-exit/test-allow-type-region-v0--v4-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-region-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-v4.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-suppr.txt",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/test-allow-type-region-v0--v4-report-2.txt",
|
|
"output/test-abidiff-exit/test-allow-type-region-v0--v4-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-region-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-v5.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-allow-type-region-v0--v5-report-1.txt",
|
|
"output/test-abidiff-exit/test-allow-type-region-v0--v5-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-allow-type-region-v0.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-v5.o",
|
|
"data/test-abidiff-exit/test-allow-type-region-suppr.txt",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-allow-type-region-v0--v5-report-2.txt",
|
|
"output/test-abidiff-exit/test-allow-type-region-v0--v5-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/ada-subrange/test1-ada-subrange/v0/test1.o",
|
|
"data/test-abidiff-exit/ada-subrange/test1-ada-subrange/v1/test1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/ada-subrange/test1-ada-subrange/test1-ada-subrange-report-1.txt",
|
|
"output/test-abidiff-exit/ada-subrange/test1-ada-subrange/test1-ada-subrange-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/ada-subrange/test1-ada-subrange/v0/test1.o",
|
|
"data/test-abidiff-exit/ada-subrange/test1-ada-subrange/v1/test1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/ada-subrange/test1-ada-subrange/test1-ada-subrange-report-2.txt",
|
|
"output/test-abidiff-exit/ada-subrange/test1-ada-subrange/test1-ada-subrange-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/ada-subrange/test2-ada-subrange-redundant/v0/test.o",
|
|
"data/test-abidiff-exit/ada-subrange/test2-ada-subrange-redundant/v1/test.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/ada-subrange/test2-ada-subrange-redundant/test2-ada-subrange-redundant-report-1.txt",
|
|
"output/test-abidiff-exit/ada-subrange/test2-ada-subrange-redundant/test2-ada-subrange-redundant-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/ada-subrange/test2-ada-subrange-redundant/v0/test.o",
|
|
"data/test-abidiff-exit/ada-subrange/test2-ada-subrange-redundant/v1/test.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --leaf-changes-only",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/ada-subrange/test2-ada-subrange-redundant/test2-ada-subrange-redundant-report-2.txt",
|
|
"output/test-abidiff-exit/ada-subrange/test2-ada-subrange-redundant/test2-ada-subrange-redundant-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/PR30329/old-image/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6",
|
|
"data/test-abidiff-exit/PR30329/new-image/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6",
|
|
"",
|
|
"",
|
|
"",
|
|
"data/test-abidiff-exit/PR30329/old-image/usr/lib/debug",
|
|
"data/test-abidiff-exit/PR30329/new-image/usr/lib/debug",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/PR30329/PR30329-report-1.txt",
|
|
"output/test-abidiff-exit/PR30329/PR30329-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/PR30503/libsdl/1.2.60/lib64/libSDL-1.2.so.1.2.60",
|
|
"data/test-abidiff-exit/PR30503/libsdl/1.2.64/lib64/libSDL-1.2.so.1.2.64",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/PR30503/libsdl/libsdl-1.2.60-1.2.64-report.txt",
|
|
"output/test-abidiff-exit/PR30503/libsdl/libsdl-1.2.60-1.2.64-report.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-PR30034/reference/lib64/librte_eal.so.23.1",
|
|
"data/test-abidiff-exit/test-PR30034/split/lib64/librte_eal.so.23.2",
|
|
"data/test-abidiff-exit/test-PR30034/libabigail.abignore",
|
|
"data/test-abidiff-exit/test-PR30034/reference/include",
|
|
"data/test-abidiff-exit/test-PR30034/split/include",
|
|
"",
|
|
"",
|
|
"data/test-abidiff-exit/test-PR30034/reference/lib64",
|
|
"data/test-abidiff-exit/test-PR30034/split/lib64",
|
|
"--no-default-suppression --no-added-syms --follow-dependencies",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/test-PR30034/test-PR30034-report-1.txt",
|
|
"output/test-abidiff-exit/test-PR30034/test-PR30034-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-enumerator-changes1-v0.o",
|
|
"data/test-abidiff-exit/test-enumerator-changes1-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --non-reachable-types --harmless",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-enumerator-changes1-report-1.txt",
|
|
"output/test-abidiff-exit/test-enumerator-changes1-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-anonymous-enums-change-v0.o",
|
|
"data/test-abidiff-exit/test-anonymous-enums-change-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --non-reachable-types",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE
|
|
| abigail::tools_utils::ABIDIFF_ABI_INCOMPATIBLE_CHANGE,
|
|
"data/test-abidiff-exit/test-anonymous-enums-change-report-v0.txt",
|
|
"output/test-abidiff-exit/test-anonymous-enums-change-report-v0.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-anonymous-enums-change-v0.o",
|
|
"data/test-abidiff-exit/test-anonymous-enums-change-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --harmless --non-reachable-types",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE
|
|
| abigail::tools_utils::ABIDIFF_ABI_INCOMPATIBLE_CHANGE,
|
|
"data/test-abidiff-exit/test-anonymous-enums-change-report-v1.txt",
|
|
"output/test-abidiff-exit/test-anonymous-enums-change-report-v1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-anon-types-v0.o",
|
|
"data/test-abidiff-exit/test-anon-types-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --harmless --non-reachable-types",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE
|
|
| abigail::tools_utils::ABIDIFF_ABI_INCOMPATIBLE_CHANGE,
|
|
"data/test-abidiff-exit/test-anon-types-report-1.txt",
|
|
"output/test-abidiff-exit/test-anon-types-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-fam1-v0.o",
|
|
"data/test-abidiff-exit/test-fam1-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-fam1-report-1.txt",
|
|
"output/test-abidiff-exit/test-fam1-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-fam1-v0.o",
|
|
"data/test-abidiff-exit/test-fam1-v1.o",
|
|
"data/test-abidiff-exit/test-fam1-suppr-1.abignore",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/test-fam1-report-2.txt",
|
|
"output/test-abidiff-exit/test-fam1-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-fam1-v0.o",
|
|
"data/test-abidiff-exit/test-fam1-v1.o",
|
|
"data/test-abidiff-exit/test-fam1-suppr-2.abignore",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-fam1-report-3.txt",
|
|
"output/test-abidiff-exit/test-fam1-report-3.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-fam1-v0.o",
|
|
"data/test-abidiff-exit/test-fam1-v1.o",
|
|
"data/test-abidiff-exit/test-fam1-suppr-3.abignore",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/test-fam1-report-4.txt",
|
|
"output/test-abidiff-exit/test-fam1-report-4.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-fam1-v0.o",
|
|
"data/test-abidiff-exit/test-fam1-v1.o",
|
|
"data/test-abidiff-exit/test-fam1-suppr-4.abignore",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-fam1-report-5.txt",
|
|
"output/test-abidiff-exit/test-fam1-report-5.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-fam2-v0.o",
|
|
"data/test-abidiff-exit/test-fam2-v1.o",
|
|
"data/test-abidiff-exit/test-fam1-suppr-1.abignore",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-fam2-report-1.txt",
|
|
"output/test-abidiff-exit/test-fam2-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/test-fam2-v0.o",
|
|
"data/test-abidiff-exit/test-fam2-v1.o",
|
|
"data/test-abidiff-exit/test-fam1-suppr-3.abignore",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/test-fam2-report-1.txt",
|
|
"output/test-abidiff-exit/test-fam2-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/PR31377/reference/lib64/librte_pipeline.so.24.0",
|
|
"data/test-abidiff-exit/PR31377/flex/lib64/librte_pipeline.so.24.1",
|
|
"",
|
|
"data/test-abidiff-exit/PR31377/reference/include",
|
|
"data/test-abidiff-exit/PR31377/flex/include",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --no-added-syms",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/PR31377/test-PR31377-report-1.txt",
|
|
"output/test-abidiff-exit/PR31377/test-PR31377-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/PR31045/zfs-abigail-2.4/libnvpair.abi",
|
|
"data/test-abidiff-exit/PR31045/zfs-abigail-2.4/libnvpair.so",
|
|
"data/test-abidiff-exit/PR31045/zfs-abigail-2.4/libnvpair.suppr",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/PR31045/zfs-abigail-2.4/test-PR31045-report-1.txt",
|
|
"output/test-abidiff-exit/PR31045/zfs-abigail-2.4/test-PR31045-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr1-v0.o",
|
|
"data/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr1-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr1-output-1.txt",
|
|
"output/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr1-output-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr2-v0.o",
|
|
"data/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr2-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr2-output-1.txt",
|
|
"output/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr2-output-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr3-v0.o",
|
|
"data/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr3-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr3-output-1.txt",
|
|
"output/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr3-output-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr4-v0.o",
|
|
"data/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr4-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr4-output-1.txt",
|
|
"output/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr4-output-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr5-v0.o",
|
|
"data/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr5-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr5-output-1.txt",
|
|
"output/test-abidiff-exit/pointer-to-member/test-ptr-to-mbr5-output-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/PR31513/reported/libloremipsum_gcc7.so",
|
|
"data/test-abidiff-exit/PR31513/reported/libloremipsum_gcc11.so",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE | abigail::tools_utils::ABIDIFF_ABI_INCOMPATIBLE_CHANGE,
|
|
"data/test-abidiff-exit/PR31513/reported/PR31513-reported-report-1.txt",
|
|
"output/test-abidiff-exit/PR31513/reported/PR31513-reported-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/PR31513/reported/libloremipsum_gcc7.so",
|
|
"data/test-abidiff-exit/PR31513/reported/libloremipsum_gcc11.so",
|
|
"data/test-abidiff-exit/PR31513/reported/libstdcpp.suppr",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/PR31513/reported/PR31513-reported-report-2.txt",
|
|
"output/test-abidiff-exit/PR31513/reported/PR31513-reported-report-2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/PR31513/non-regr/libtest1-v0.so",
|
|
"data/test-abidiff-exit/PR31513/non-regr/libtest1-v1.so",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/PR31513/non-regr/report1.txt",
|
|
"output/test-abidiff-exit/PR31513/non-regr/report1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/PR31513/non-regr/libtest2-v0.so",
|
|
"data/test-abidiff-exit/PR31513/non-regr/libtest2-v1.so",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/PR31513/non-regr/report2.txt",
|
|
"output/test-abidiff-exit/PR31513/non-regr/report2.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/PR31513/non-regr/libtest3-v0.so",
|
|
"data/test-abidiff-exit/PR31513/non-regr/libtest3-v1.so",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/PR31513/non-regr/report3.txt",
|
|
"output/test-abidiff-exit/PR31513/non-regr/report3.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/PR31513/non-regr/libtest4-v0.so",
|
|
"data/test-abidiff-exit/PR31513/non-regr/libtest4-v1.so",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/PR31513/non-regr/report4.txt",
|
|
"output/test-abidiff-exit/PR31513/non-regr/report4.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/non-del-anon-dm/reported/librte_graph.so.24.0",
|
|
"data/test-abidiff-exit/non-del-anon-dm/reported/librte_graph.so.24.1",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/non-del-anon-dm/reported/report0.txt",
|
|
"output/test-abidiff-exit/non-del-anon-dm/reported/report0.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/non-del-anon-dm/non-regr/test0-v0.o",
|
|
"data/test-abidiff-exit/non-del-anon-dm/non-regr/test0-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression",
|
|
abigail::tools_utils::ABIDIFF_OK,
|
|
"data/test-abidiff-exit/non-del-anon-dm/non-regr/report0.txt",
|
|
"output/test-abidiff-exit/non-del-anon-dm/non-regr/report0.txt"
|
|
},
|
|
#ifdef WITH_BTF
|
|
{
|
|
"data/test-abidiff-exit/btf/test0-v0.o",
|
|
"data/test-abidiff-exit/btf/test0-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --btf",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/btf/test0-report-1.txt",
|
|
"output/test-abidiff-exit/btf/test0-report-1.txt"
|
|
},
|
|
{
|
|
"data/test-abidiff-exit/btf/test0-v0.o",
|
|
"data/test-abidiff-exit/btf/test0-v1.o",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"--no-default-suppression --harmless --btf",
|
|
abigail::tools_utils::ABIDIFF_ABI_CHANGE,
|
|
"data/test-abidiff-exit/btf/test0-report-2.txt",
|
|
"output/test-abidiff-exit/btf/test0-report-2.txt"
|
|
},
|
|
#endif
|
|
{0, 0, 0 ,0, 0, 0, 0, 0, 0, 0, abigail::tools_utils::ABIDIFF_OK, 0, 0}
|
|
};
|
|
|
|
/// Prefix the strings in a vector of string.
|
|
///
|
|
/// @param strings the strings to prefix.
|
|
///
|
|
/// @param prefix the prefix to use.
|
|
static void
|
|
do_prefix_strings(std::vector<std::string> &strings,
|
|
const std::string& prefix)
|
|
{
|
|
for (std::vector<std::string>::size_type i = 0; i < strings.size(); ++i)
|
|
strings[i] = prefix + strings[i];
|
|
}
|
|
|
|
int
|
|
main()
|
|
{
|
|
using std::string;
|
|
using std::vector;
|
|
using std::cerr;
|
|
using abigail::tests::get_src_dir;
|
|
using abigail::tests::get_build_dir;
|
|
using abigail::tools_utils::ensure_parent_dir_created;
|
|
using abigail::tools_utils::split_string;
|
|
using abigail::tools_utils::abidiff_status;
|
|
|
|
unsigned int total_count = 0, passed_count = 0, failed_count = 0;
|
|
|
|
string in_elfv0_path, in_elfv1_path,
|
|
in_suppression_path, abidiff_options, abidiff, cmd, diff_cmd,
|
|
ref_diff_report_path, out_diff_report_path, in_elfv0_debug_dir,
|
|
in_elfv1_debug_dir, in_elfv0_added_bins_dir, in_elfv1_added_bins_dir;
|
|
vector<string> in_elfv0_headers_dirs, in_elfv1_headers_dirs;
|
|
string source_dir_prefix = string(get_src_dir()) + "/tests/";
|
|
string build_dir_prefix = string(get_build_dir()) + "/tests/";
|
|
|
|
for (InOutSpec* s = in_out_specs; s->in_elfv0_path; ++s)
|
|
{
|
|
bool is_ok = true;
|
|
in_elfv0_path = source_dir_prefix + s->in_elfv0_path;
|
|
in_elfv1_path = source_dir_prefix + s->in_elfv1_path;
|
|
in_elfv0_debug_dir.clear();
|
|
in_elfv1_debug_dir.clear();
|
|
if (s->in_elfv0_debug_dir && strcmp(s->in_elfv0_debug_dir, ""))
|
|
in_elfv0_debug_dir = source_dir_prefix + s->in_elfv0_debug_dir;
|
|
if (s->in_elfv1_debug_dir && strcmp(s->in_elfv1_debug_dir, ""))
|
|
in_elfv1_debug_dir = source_dir_prefix + s->in_elfv1_debug_dir;
|
|
in_elfv0_headers_dirs.clear();
|
|
in_elfv1_headers_dirs.clear();
|
|
in_elfv0_added_bins_dir.clear();
|
|
in_elfv1_added_bins_dir.clear();
|
|
|
|
if (s->in_elfv0_headers_dirs && strcmp(s->in_elfv0_headers_dirs, ""))
|
|
{
|
|
split_string(s->in_elfv0_headers_dirs, ",", in_elfv0_headers_dirs);
|
|
do_prefix_strings(in_elfv0_headers_dirs, source_dir_prefix);
|
|
}
|
|
|
|
if (s->in_elfv1_headers_dirs && strcmp(s->in_elfv1_headers_dirs, ""))
|
|
{
|
|
split_string(s->in_elfv1_headers_dirs, ",", in_elfv1_headers_dirs);
|
|
do_prefix_strings(in_elfv1_headers_dirs, source_dir_prefix);
|
|
}
|
|
|
|
if (s->in_suppr_path && strcmp(s->in_suppr_path, ""))
|
|
in_suppression_path = source_dir_prefix + s->in_suppr_path;
|
|
else
|
|
in_suppression_path.clear();
|
|
|
|
if (s->in_elfv0_added_bins_dir
|
|
&& strcmp(s->in_elfv0_added_bins_dir, ""))
|
|
in_elfv0_added_bins_dir =
|
|
source_dir_prefix + s->in_elfv0_added_bins_dir;
|
|
|
|
if (s->in_elfv1_added_bins_dir
|
|
&& strcmp(s->in_elfv1_added_bins_dir, ""))
|
|
in_elfv1_added_bins_dir =
|
|
source_dir_prefix + s->in_elfv1_added_bins_dir;
|
|
|
|
abidiff_options = s->abidiff_options;
|
|
ref_diff_report_path = source_dir_prefix + s->in_report_path;
|
|
out_diff_report_path = build_dir_prefix + s->out_report_path;
|
|
|
|
if (!ensure_parent_dir_created(out_diff_report_path))
|
|
{
|
|
cerr << "could not create parent directory for "
|
|
<< out_diff_report_path
|
|
<< "\n";
|
|
is_ok = false;
|
|
continue;
|
|
}
|
|
|
|
abidiff = string(get_build_dir()) + "/tools/abidiff";
|
|
if (!abidiff_options.empty())
|
|
abidiff += " " + abidiff_options;
|
|
|
|
if (!in_elfv0_added_bins_dir.empty())
|
|
abidiff += " --added-binaries-dir1 " + in_elfv0_added_bins_dir;
|
|
|
|
if (!in_elfv1_added_bins_dir.empty())
|
|
abidiff += " --added-binaries-dir2 " + in_elfv1_added_bins_dir;
|
|
|
|
if (!in_elfv0_debug_dir.empty())
|
|
abidiff += " --debug-info-dir1 " + in_elfv0_debug_dir;
|
|
|
|
if (!in_elfv1_debug_dir.empty())
|
|
abidiff += " --debug-info-dir2 " + in_elfv1_debug_dir;
|
|
|
|
if (!in_elfv0_headers_dirs.empty())
|
|
for (vector<string>::const_iterator s = in_elfv0_headers_dirs.begin();
|
|
s != in_elfv0_headers_dirs.end();
|
|
++s)
|
|
abidiff += " --headers-dir1 " + *s;
|
|
|
|
if (!in_elfv1_headers_dirs.empty())
|
|
for (vector<string>::const_iterator s = in_elfv1_headers_dirs.begin();
|
|
s != in_elfv1_headers_dirs.end();
|
|
++s)
|
|
abidiff += " --headers-dir2 " + *s;
|
|
|
|
if (!in_suppression_path.empty())
|
|
abidiff += " --suppressions " + in_suppression_path;
|
|
|
|
cmd = abidiff + " " + in_elfv0_path + " " + in_elfv1_path;
|
|
cmd += " > " + out_diff_report_path;
|
|
|
|
bool abidiff_ok = true;
|
|
int code = system(cmd.c_str());
|
|
if (!WIFEXITED(code))
|
|
abidiff_ok = false;
|
|
else
|
|
{
|
|
abigail::tools_utils::abidiff_status status =
|
|
static_cast<abidiff_status>(WEXITSTATUS(code));
|
|
if (status != s->status)
|
|
{
|
|
cerr << "for command '"
|
|
<< cmd
|
|
<< "', expected abidiff status to be " << s->status
|
|
<< " but instead, got " << status << "\n";
|
|
abidiff_ok = false;
|
|
}
|
|
}
|
|
|
|
if (abidiff_ok)
|
|
{
|
|
diff_cmd = "diff -u " + ref_diff_report_path
|
|
+ " " + out_diff_report_path;
|
|
if (system(diff_cmd.c_str()))
|
|
is_ok = false;
|
|
}
|
|
else
|
|
is_ok = false;
|
|
|
|
emit_test_status_and_update_counters(is_ok,
|
|
cmd,
|
|
passed_count,
|
|
failed_count,
|
|
total_count);
|
|
}
|
|
|
|
emit_test_summary(total_count, passed_count, failed_count);
|
|
|
|
|
|
return failed_count;
|
|
}
|