This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=1c7f9f2be3c78d115d2cd4652c59ea4a42bf78ee commit 1c7f9f2be3c78d115d2cd4652c59ea4a42bf78ee Author: Guillem Jover <[email protected]> AuthorDate: Sat Jul 6 16:57:00 2024 +0200 test: Only execute Dpkg::Shlibs checks on ELF platforms We currently only support ELF, and systems with other executable formats such as Mach-O on macOS are not supported and will fail the tests. Skip them for now. --- scripts/t/Dpkg_Shlibs.t | 7 ++++++- scripts/t/Dpkg_Shlibs_Cppfilt.t | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/scripts/t/Dpkg_Shlibs.t b/scripts/t/Dpkg_Shlibs.t index 7cc325cd9..774f409bf 100644 --- a/scripts/t/Dpkg_Shlibs.t +++ b/scripts/t/Dpkg_Shlibs.t @@ -19,10 +19,15 @@ use warnings; use Test::More; use Test::Dpkg qw(:needs :paths); +use Config; use Cwd; use IPC::Cmd qw(can_run); -plan tests => 150; +if (defined $Config{bin_ELF} && $Config{bin_ELF} eq 'define') { + plan tests => 150; +} else { + plan skip_all => 'only ELF is currently supported'; +} $ENV{DEB_BUILD_ARCH} = 'amd64'; $ENV{DEB_HOST_ARCH} = 'amd64'; diff --git a/scripts/t/Dpkg_Shlibs_Cppfilt.t b/scripts/t/Dpkg_Shlibs_Cppfilt.t index 6a76977ab..f5bd22e43 100644 --- a/scripts/t/Dpkg_Shlibs_Cppfilt.t +++ b/scripts/t/Dpkg_Shlibs_Cppfilt.t @@ -19,9 +19,15 @@ use warnings; use Test::More; use Test::Dpkg qw(:needs); +use Config; + test_needs_command('c++filt'); -plan tests => 124; +if (defined $Config{bin_ELF} && $Config{bin_ELF} eq 'define') { + plan tests => 124; +} else { + plan skip_all => 'only ELF is currently supported'; +} use_ok('Dpkg::Shlibs::Cppfilt'); -- Dpkg.Org's dpkg

