]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: Install files required to run integration tests standalone
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 8 Apr 2025 09:00:20 +0000 (11:00 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 8 Apr 2025 11:02:24 +0000 (13:02 +0200)
Let's make it possible to run the integration tests without requiring
the sources by installing the mkosi and integration-tests directories.

meson.build
test/meson.build

index 6fe36bc65be24877b52afe148b44ee7032b1fad1..2dc16b37adb0292ff4d878c5d458ef0977e1b4b4 100644 (file)
@@ -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')
index 68bffdb282f65be8abb449d4874bf84605c6a763..62d281244216891efd71b9b66e61cda3cf8b872b 100644 (file)
@@ -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 = []