[vala/staging] vapi: Perform syntax and semantic check for all bindings on "make check"
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vapi: Perform syntax and semantic check for all bindings on "make check"
- Date: Sat, 5 Oct 2019 10:23:03 +0000 (UTC)
commit d9c368ae608060be76b3838aa38e3ede945fcb5b
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Oct 5 11:15:04 2019 +0200
vapi: Perform syntax and semantic check for all bindings on "make check"
vapi/Makefile.am | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/vapi/Makefile.am b/vapi/Makefile.am
index ef413a157..6aa0ad8b8 100644
--- a/vapi/Makefile.am
+++ b/vapi/Makefile.am
@@ -1,5 +1,13 @@
NULL =
+check: $(top_builddir)/compiler/valac
+ echo "void main () {}" > test.vala; \
+ for vapi in `ls *.vapi | sed -e "s/\.vapi//g"`; do \
+ echo "Checking $$vapi..."; \
+ $(top_builddir)/compiler/valac -C --pkg=$$vapi --vapidir=. test.vala || exit 1; \
+ done; \
+ rm -f test.vala test.c
+
vapidir = $(pkgdatadir)/vapi
dist_vapi_DATA = \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]