[iagno] Validate appdata and desktop file at make check



commit c0611e6c954b973e98f4b65cb6a1ef35b137590f
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Oct 5 10:10:57 2013 -0500

    Validate appdata and desktop file at make check

 configure.ac     |    2 ++
 data/Makefile.am |    4 ++++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f8b8942..2af354e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,6 +23,8 @@ PKG_CHECK_MODULES(IAGNO, [
   libcanberra-gtk3 >= $CANBERRA_GTK_REQUIRED
 ])
 
+AC_PATH_PROG(APPDATA_VALIDATE, appdata-validate)
+AC_PATH_PROG(DESKTOP_FILE_VALIDATE, desktop-file-validate)
 AC_PATH_PROG(GTESTER, gtester)
 
 dnl ###########################################################################
diff --git a/data/Makefile.am b/data/Makefile.am
index 388f457..4f70edd 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -46,4 +46,8 @@ EXTRA_DIST = \
 CLEANFILES = $(desktop_DATA) $(gsettings_SCHEMAS)
 DISTCLEANFILES = $(gsettings_SCHEMAS)
 
+check-local: $(appdata_DATA) $(desktop_DATA)
+       $(APPDATA_VALIDATE) $(appdata_DATA)
+       $(DESKTOP_FILE_VALIDATE) $(desktop_DATA)
+
 -include $(top_srcdir)/git.mk


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