summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
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
############################################################