Commit ae60e502 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui Committed by Christopher Davis

meson: tests to validate appdata & desktop files

parent 62cd232a
i18n.merge_file(
appdata_file = i18n.merge_file(
'appdata-file',
input: '@0@.appdata.xml.in'.format(application_id),
output: '@0@.appdata.xml'.format(application_id),
......@@ -6,3 +6,12 @@ i18n.merge_file(
install: true,
install_dir: join_paths(sound_recorder_datadir, 'metainfo')
)
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
\ No newline at end of file
......@@ -10,7 +10,7 @@ install_data(
install_dir: join_paths(sound_recorder_datadir, icon_dir)
)
i18n.merge_file(
desktop_file = i18n.merge_file(
'desktop',
input: '@0@.desktop.in'.format(application_id),
output: '@0@.desktop'.format(application_id),
......@@ -19,6 +19,16 @@ i18n.merge_file(
po_dir: po_dir,
type: 'desktop'
)
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
gsettings_conf = configuration_data()
gsettings_conf.set('GETTEXT_PACKAGE', meson.project_name ())
......
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