[devhelp/repo-cleanup] tests: Validate the desktop file
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp/repo-cleanup] tests: Validate the desktop file
- Date: Mon, 12 Apr 2021 22:37:05 +0000 (UTC)
commit 29b92eaaf80ddd65c20a4fb5fa558c774d7ab1dc
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]