summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-07-01 13:08:31 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-07-12 09:24:43 +0200
commitf875e6bc399614401b245751dec04918407e754d (patch)
tree804da8e21470727c4c1871e2535fdbeead7c3d7b /meson.build
parentkernel-install: mark the plugins as executable in git (diff)
downloadsystemd-f875e6bc399614401b245751dec04918407e754d.tar.xz
systemd-f875e6bc399614401b245751dec04918407e754d.zip
test-kernel-install: add a simple test that kernel-install copies the files
I opted to tweaking kernel-install to allow overriding config (with $KERNEL_INSTALL_CONF_ROOT, $KERNEL_INSTALL_PLUGINS). An alternative would be to build a test environment in test/. We can still do that, but I think it's nice to have a simple test that is very quick and easy to debug. Invocation as installkernel is for #23681.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build9
1 files changed, 8 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 2e8b69c96a..ff0488145b 100644
--- a/meson.build
+++ b/meson.build
@@ -3751,7 +3751,7 @@ executable(
install : true,
install_dir : rootlibexecdir)
-public_programs += custom_target(
+exe = custom_target(
'kernel-install',
input : kernel_install_in,
output : 'kernel-install',
@@ -3759,6 +3759,13 @@ public_programs += custom_target(
install : want_kernel_install,
install_mode : 'rwxr-xr-x',
install_dir : bindir)
+public_programs += exe
+
+if want_tests != 'false'
+ test('test-kernel-install',
+ test_kernel_install_sh,
+ args : [exe.full_path(), loaderentry_install])
+endif
############################################################