diff options
author | Daniel Stone <daniels@collabora.com> | 2016-04-12 12:03:32 +0100 |
---|---|---|
committer | Daniel Stone <daniels@collabora.com> | 2016-04-12 12:15:04 +0100 |
commit | 7e123a10b6bd29d48d5f3c18287b3f533fcd3f80 (patch) | |
tree | cea4be89a6e88698b8bb230bf796f9f8eb4ee192 /Makefile.am | |
parent | 03f5d36b44b7c4cc5cc3bb94658cd6607672e6d3 (diff) | |
download | xorg-lib-libxkbcommon-7e123a10b6bd29d48d5f3c18287b3f533fcd3f80.tar.gz |
test: Add interactive-wayland
interactive-wayland is very similar to x11/xev, and dumps out as much
state as possible.
It provides no titlebar and a completely random cursor, but such is
life.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index e91c484..1f8e219 100644 --- a/Makefile.am +++ b/Makefile.am @@ -254,6 +254,42 @@ test_interactive_x11_LDADD = $(TESTS_X11_LDADD) test_interactive_x11_CFLAGS = $(TESTS_X11_CFLAGS) endif ENABLE_X11 +if ENABLE_WAYLAND +build_only_tests += \ + test/interactive-wayland + +TESTS_WAYLAND_LDADD = $(WAYLAND_LIBS) $(TESTS_LDADD) +TESTS_WAYLAND_CFLAGS = $(WAYLAND_CFLAGS) + +.SECONDEXPANSION: + +define protostability +$(if $(findstring unstable,$1),unstable,stable) +endef + +define protoname +$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/') +endef + +%-protocol.c: $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml + $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@ +%-client-protocol.h: $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml + $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@ + +INTERACTIVE_WL_XDG_SHELL_SRCS = \ + xdg-shell-unstable-v5-protocol.c \ + xdg-shell-unstable-v5-client-protocol.h + +test_interactive_wayland_SOURCES = \ + test/interactive-wayland.c \ + $(INTERACTIVE_WL_XDG_SHELL_SRCS) +test_interactive_wayland_LDADD = $(TESTS_WAYLAND_LDADD) +test_interactive_wayland_CFLAGS = $(TESTS_WAYLAND_CFLAGS) + +BUILT_SOURCES += \ + $(INTERACTIVE_WL_XDG_SHELL_SRCS) +endif + check_PROGRAMS = $(build_run_tests) $(build_only_tests) TESTS = $(build_run_tests) $(run_only_tests) |