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
This commit is contained in:
Luca Boccassi
2026-05-29 17:48:52 +01:00
parent 0fd7b5ea5f
commit 595d3d593c
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -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 + {
+6 -1
View File
@@ -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)