diff --git a/js/extensionPrefs/data/metainfo/meson.build b/js/extensionPrefs/data/metainfo/meson.build index 932651fbc..a144a56d0 100644 --- a/js/extensionPrefs/data/metainfo/meson.build +++ b/js/extensionPrefs/data/metainfo/meson.build @@ -13,4 +13,13 @@ if (appstream_util.found()) args: ['validate', '--nonet', metainfo], workdir: meson.current_build_dir() ) + + r = run_command(appstream_util, '--help') + if (r.stdout().contains('validate-version')) + test('Checking release entry for @0@'.format(meson.project_version()), + appstream_util, + args: ['validate-version', metainfo, meson.project_version()], + workdir: meson.current_build_dir() + ) + endif endif