]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - meson.build
Merge pull request #23414 from keszybz/analyze-vercmp
[thirdparty/systemd.git] / meson.build
index 69724a1cdd3767eb7629271e8321f2e5615febbc..f416b4f234b38df241b9b5b657761e5cebe7a3ed 100644 (file)
@@ -2162,7 +2162,7 @@ meson.add_install_script(meson_make_symlink,
                          rootlibexecdir / 'systemd',
                          rootsbindir / 'init')
 
-public_programs += executable(
+exe = executable(
         'systemd-analyze',
         systemd_analyze_sources,
         include_directories : core_includes,
@@ -2172,6 +2172,13 @@ public_programs += executable(
                         libseccomp],
         install_rpath : rootlibexecdir,
         install : conf.get('ENABLE_ANALYZE'))
+public_programs += exe
+
+if want_tests != 'false'
+        test('test-compare-versions',
+             test_compare_versions_sh,
+             args : exe.full_path())
+endif
 
 executable(
         'systemd-journald',