From: Luca Boccassi Date: Fri, 29 May 2026 13:13:20 +0000 (+0100) Subject: test: skip test-execute and ukify addon test when cross-compiling X-Git-Tag: v261-rc3~23^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=595d3d593cfd2e6a2353b207a5c3e094a18a5665;p=thirdparty%2Fsystemd.git test: skip test-execute and ukify addon test when cross-compiling These tests run native tools on foreign ELF files, so they fail, just skip them when cross-compiling --- diff --git a/src/test/meson.build b/src/test/meson.build index 03635c2efc7..21b1f435f46 100644 --- a/src/test/meson.build +++ b/src/test/meson.build @@ -547,6 +547,7 @@ executables += [ core_test_template + { 'sources' : files('test-execute.c'), 'dependencies' : common_test_dependencies, + 'type' : meson.is_cross_build() ? 'manual' : '', 'timeout' : 360, }, core_test_template + { diff --git a/src/ukify/test/meson.build b/src/ukify/test/meson.build index 68be54e2282..a5c7bbb37c3 100644 --- a/src/ukify/test/meson.build +++ b/src/ukify/test/meson.build @@ -12,10 +12,15 @@ if want_ukify and want_tests != 'false' args += ['--flakes'] endif + efi_addon_for_test = '' + if not meson.is_cross_build() and efi_addon.length() > 0 + efi_addon_for_test = efi_addon[0].full_path() + endif + test('test-ukify', files('test_ukify.py'), args: args, - env : test_env + {'EFI_ADDON' : efi_addon.length() > 0 ? efi_addon[0].full_path() : ''}, + env : test_env + {'EFI_ADDON' : efi_addon_for_test}, timeout : 120, suite : 'ukify', depends : efi_addon)