[devhelp/repo-cleanup: 14/14] tests: Validate the desktop file




commit 3ab8dbf21f5d1b51ec34fa42f78ef6eea03feaf8
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Apr 12 23:36:30 2021 +0100

    tests: Validate the desktop file
    
    Ensure that the desktop file is valid at build time, including eventual
    translations.

 data/meson.build | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/data/meson.build b/data/meson.build
index e583f214..640fab46 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -36,6 +36,15 @@ I18N.merge_file(
   install_dir: get_option('datadir') / 'applications'
 )
 
+desktop_file_validate = find_program('desktop-file-validate', required: false)
+if desktop_file_validate.found()
+  test('validate-desktop',
+    desktop_file_validate,
+    args: desktop_file,
+    workdir: meson.current_build_dir(),
+  )
+endif
+
 service_file = 'org.gnome.Devhelp.service'
 service_conf = configuration_data()
 service_conf.set('bindir', get_option('prefix') / get_option('bindir'))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]