From a0ce5e642ff4fcfcd7da25a585bfbd83b5737235 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 8 Apr 2025 11:00:20 +0200 Subject: [PATCH] test: Install files required to run integration tests standalone Let's make it possible to run the integration tests without requiring the sources by installing the mkosi and integration-tests directories. --- meson.build | 7 +++++++ test/meson.build | 3 +++ 2 files changed, 10 insertions(+) diff --git a/meson.build b/meson.build index 6fe36bc65be..2dc16b37adb 100644 --- a/meson.build +++ b/meson.build @@ -2692,6 +2692,13 @@ if mkosi.found() ) endif +if install_tests + install_subdir('mkosi', + install_dir : testsdir, + exclude_files : ['mkosi.local.conf', 'mkosi.key', 'mkosi.crt'], + exclude_directories : ['mkosi.local']) +endif + ############################################################ subdir('rules.d') diff --git a/test/meson.build b/test/meson.build index 68bffdb282f..62d28124421 100644 --- a/test/meson.build +++ b/test/meson.build @@ -282,6 +282,9 @@ if want_tests != 'false' endif if install_tests + install_subdir('integration-tests', + install_dir : testsdir) + foreach integration_test : integration_tests integration_test_unit_env = [] integration_test_extra_unit_properties = [] -- 2.47.3