summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2021-03-31 14:36:01 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2021-06-24 14:19:26 +0200
commit9a8fd34a8caecb222425041beeeb7de4cb98c0cd (patch)
tree358eca534904289cbff04b67aa968a1ab4d2ac59 /tests
parent9d7192bf11a946510d390a73bcce5a63064e24d4 (diff)
downloadvala-9a8fd34a8caecb222425041beeeb7de4cb98c0cd.tar.gz
build: Use jing to verify generated GIR file, if available
Diffstat (limited to 'tests')
-rw-r--r--tests/girwriter/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/girwriter/Makefile.am b/tests/girwriter/Makefile.am
index f1554d0e7..796f36b6a 100644
--- a/tests/girwriter/Makefile.am
+++ b/tests/girwriter/Makefile.am
@@ -1,4 +1,5 @@
NULL =
+GIRDIR = $$($(PKG_CONFIG) gobject-introspection-1.0 --variable=girdir)
check-girwriter: $(top_builddir)/compiler/valac
G_DEBUG=fatal-warnings $(top_builddir)/compiler/valac \
@@ -15,6 +16,9 @@ check-girwriter: $(top_builddir)/compiler/valac
if HAVE_G_IR_COMPILER
$(G_IR_COMPILER) -o GirTest-1.0.typelib GirTest-1.0.gir;
endif
+if HAVE_JING
+ $(JING) -c -e UTF-8 $(GIRDIR)/gir-1.2.rnc GirTest-1.0.gir || echo "Ignoring above error(s)";
+endif
rm -f girtest.vapi girtest.c;
G_DEBUG=fatal-warnings $(top_builddir)/vapigen/vapigen \
--vapidir $(top_srcdir)/vapi \