]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: skip test-execute and ukify addon test when cross-compiling
authorLuca Boccassi <luca.boccassi@gmail.com>
Fri, 29 May 2026 13:13:20 +0000 (14:13 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 29 May 2026 16:48:52 +0000 (17:48 +0100)
These tests run native tools on foreign ELF files, so they fail,
just skip them when cross-compiling

src/test/meson.build
src/ukify/test/meson.build

index 03635c2efc7149c35a1aa4051145cdbf098cbdb0..21b1f435f4630f3826f74a5b8eaabc1d6c5e60f5 100644 (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 + {
index 68be54e228213b080131f424a2c33fe3b60f90c1..a5c7bbb37c33b0e66e555e54f5c4d8e86ff24a21 100644 (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)