mirror of
https://gitlab.freedesktop.org/xorg/proto/xcbproto.git
synced 2026-05-05 18:08:00 +02:00
Validate protocol descriptions against schema in "make check", using xmllint. These tests will also run when doing "make distcheck" to create a distribution.
This commit is contained in:
parent
3084d8b32e
commit
66f5611130
2 changed files with 12 additions and 0 deletions
|
|
@ -8,6 +8,12 @@ AC_INIT([XCBProto],
|
|||
AC_CONFIG_SRCDIR([xcb-proto.pc.in])
|
||||
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
||||
|
||||
AC_PATH_PROG(XMLLINT, xmllint, no)
|
||||
AM_CONDITIONAL(HAVE_XMLLINT, test "x$XMLLINT" != "xno")
|
||||
if test "$XSLTPROC" = "no"; then
|
||||
AC_MSG_WARN([xmllint not found; unable to validate against schema.])
|
||||
fi
|
||||
|
||||
xcbincludedir='${includedir}/X11/XCB'
|
||||
AC_SUBST(xcbincludedir)
|
||||
|
||||
|
|
|
|||
|
|
@ -20,3 +20,9 @@ nobase_xcbinclude_HEADERS = xcb.xsd \
|
|||
extensions/xprint.xml \
|
||||
extensions/xv.xml \
|
||||
extensions/xvmc.xml
|
||||
|
||||
if HAVE_XMLLINT
|
||||
check-local:
|
||||
$(XMLLINT) --noout --schema $(srcdir)/xcb.xsd \
|
||||
$(srcdir)/*.xml $(srcdir)/extensions/*.xml
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue