On Mon, Dec 21, 2015 at 02:48:49PM -0600, Derek Foreman wrote: > We can now test all the protocol files by running make check (or distcheck) > which will pass them through the scanner. > > Signed-off-by: Derek Foreman <der...@osg.samsung.com> > --- > .gitignore | 3 +++ > Makefile.am | 6 ++++++ > test/scan.sh | 5 +++++
nit: In weston and wayland, tests go in "tests/" not "test/". > 3 files changed, 14 insertions(+) > create mode 100755 test/scan.sh > > diff --git a/.gitignore b/.gitignore > index e6f85d0..ca19ecf 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -9,3 +9,6 @@ missing > *.pc > autom4te.cache > aclocal.m4 > +*.trs > +*.log > +test-driver > diff --git a/Makefile.am b/Makefile.am > index 5926a41..3a88c39 100644 > --- a/Makefile.am > +++ b/Makefile.am > @@ -16,3 +16,9 @@ dist_noinst_DATA = > \ > $(NULL) > > noarch_pkgconfig_DATA = wayland-protocols.pc > + > +EXTRA_DIST = test/scan.sh > + > +TESTS = $(unstable_protocols) > +TEST_EXTENSIONS = .xml > +XML_LOG_COMPILER = $(srcdir)/test/scan.sh > diff --git a/test/scan.sh b/test/scan.sh > new file mode 100755 > index 0000000..dc3dfc0 > --- /dev/null > +++ b/test/scan.sh > @@ -0,0 +1,5 @@ > +#!/bin/bash > + > +wayland-scanner client-header $1 /dev/null && > +wayland-scanner server-header $1 /dev/null && > +wayland-scanner code $1 /dev/null You need to add a dependency to wayland-scanner, and use path discovered here. Jonas > -- > 2.6.4 > > _______________________________________________ > wayland-devel mailing list > wayland-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/wayland-devel _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel