[gnome-tweaks] meson: add tests to validate appdata/desktop files
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweaks] meson: add tests to validate appdata/desktop files
- Date: Mon, 21 Jan 2019 02:45:18 +0000 (UTC)
commit d30f191d273c0a2e5eb5ba3604b3c946aa450465
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Wed Jan 9 17:07:58 2019 +0000
meson: add tests to validate appdata/desktop files
data/meson.build | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
---
diff --git a/data/meson.build b/data/meson.build
index c16d64a..e02a590 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -6,6 +6,15 @@ i18n.merge_file(appdata_file,
install: true,
install_dir: appdatadir
)
+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
desktop_file = 'org.gnome.tweaks.desktop'
i18n.merge_file(desktop_file,
@@ -16,6 +25,16 @@ i18n.merge_file(desktop_file,
install_dir: desktopdir,
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
gui_data = [
'shell.ui',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]