Commit 556feae8 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui Committed by Jeremy Bicha

meson: add tests to validate desktop/appdata files

parent 2238e4ba
......@@ -11,7 +11,7 @@ install_data (project_id + '.gschema.xml',
install_dir: join_paths (datadir, 'glib-2.0', 'schemas'))
i18n.merge_file ('desktop-file',
desktop_file = i18n.merge_file ('desktop-file',
input: project_id + '.desktop.in',
output: project_id + '.desktop',
install: true,
......@@ -19,11 +19,32 @@ i18n.merge_file ('desktop-file',
po_dir: '../po',
type: 'desktop')
i18n.merge_file ('appdata-file',
desktop_file_validate = find_program('desktop-file-validate', required: false)
if desktop_file_validate.found()
test(
'validate-desktop',
desktop_file_validate,
args: [
desktop_file.full_path()
]
)
endif
appdata_file = i18n.merge_file ('appdata-file',
input: project_id + '.appdata.xml.in',
output: project_id + '.appdata.xml',
install: true,
install_dir: join_paths (datadir, 'metainfo'),
po_dir: '../po')
appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
test(
'validate-appdata', appstream_util,
args: [
'validate-relax', '--nonet', appdata_file.full_path()
]
)
endif
install_man ('gnome-tetravex.6')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment