[gnome-font-viewer/wip/cdavis/validate-appdata] data: Add test to validate appdata
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-font-viewer/wip/cdavis/validate-appdata] data: Add test to validate appdata
- Date: Sun, 14 Feb 2021 05:52:20 +0000 (UTC)
commit a31593140f098764bb48d1a4706b1befb8f5a135
Author: Christopher Davis <christopherdavis gnome org>
Date: Sat Feb 13 21:51:55 2021 -0800
data: Add test to validate appdata
data/meson.build | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/data/meson.build b/data/meson.build
index b843a01..bfc9caa 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -1,6 +1,6 @@
appdatadir = join_paths(datadir, 'metainfo')
appdata_file = 'org.gnome.font-viewer.appdata.xml'
-i18n.merge_file(appdata_file,
+merged_appdata = i18n.merge_file(appdata_file,
input: appdata_file + '.in',
output: appdata_file,
po_dir: '../po',
@@ -8,4 +8,14 @@ i18n.merge_file(appdata_file,
install_dir: appdatadir
)
+appstream_util = find_program('appstream-util', required: false)
+if appstream_util.found()
+ test(
+ 'validate-appdata', appstream_util,
+ args: [
+ 'validate-relax', '--nonet', merged_appdata.full_path()
+ ]
+ )
+endif
+
subdir('icons')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]