]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Add test support for systemd-tmpfiles.standalone
authorMike Gilbert <floppym@gentoo.org>
Sun, 17 Apr 2022 13:48:28 +0000 (09:48 -0400)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 Apr 2022 16:27:09 +0000 (01:27 +0900)
meson.build

index 458370e83df5d42a8b9551cb11af3f32b643f2b3..d60be1b050618cace02f16dacc654305542cc3c7 100644 (file)
@@ -3451,7 +3451,7 @@ if conf.get('ENABLE_TMPFILES') == 1
         endif
 
         if have_standalone_binaries
-                public_programs += executable(
+                exe = executable(
                         'systemd-tmpfiles.standalone',
                         systemd_tmpfiles_sources,
                         include_directories : includes,
@@ -3463,6 +3463,14 @@ if conf.get('ENABLE_TMPFILES') == 1
                         dependencies : [libacl],
                         install : true,
                         install_dir : rootbindir)
+                public_programs += exe
+
+                if want_tests != 'false'
+                        test('test-systemd-tmpfiles.standalone',
+                             test_systemd_tmpfiles_py,
+                             # https://github.com/mesonbuild/meson/issues/2681
+                             args : exe.full_path())
+                endif
         endif
 endif