From: Mike Gilbert Date: Sun, 17 Apr 2022 13:48:28 +0000 (-0400) Subject: Add test support for systemd-tmpfiles.standalone X-Git-Tag: v251-rc2~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf93f24ad8743e1dae7d8629946df7325af2bef7;p=thirdparty%2Fsystemd.git Add test support for systemd-tmpfiles.standalone --- diff --git a/meson.build b/meson.build index 458370e83df..d60be1b0506 100644 --- a/meson.build +++ b/meson.build @@ -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