[gnome-maps/wip/mlundblad/meson-appdata-tests] WIP: meson: Add validation tests for desktop and appdata
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/meson-appdata-tests] WIP: meson: Add validation tests for desktop and appdata
- Date: Mon, 8 Apr 2019 20:49:34 +0000 (UTC)
commit 8500d735d1bea48ee5226df8f228d11c4d4b0818
Author: Marcus Lundblad <ml update uu se>
Date: Mon Apr 8 22:47:40 2019 +0200
WIP: meson: Add validation tests for desktop and appdata
Fixes #174
data/meson.build | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 349ff25..2362305 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -13,7 +13,7 @@ install_data(
desktop = app_id + '.desktop'
-custom_target('desktop-file',
+desktop_file = custom_target('desktop-file',
input: desktop + '.in',
output: desktop,
install: true,
@@ -53,4 +53,15 @@ configure_file(
install_dir: join_paths(datadir, 'dbus-1', 'services')
)
-subdir('icons')
+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
+
+subdir('icons')
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]