[PATCH weston v2 1/4] tests: Add .weston extension to clients tests

Pekka Paalanen ppaalanen at gmail.com
Fri Jun 7 06:20:38 PDT 2013


On Fri,  7 Jun 2013 10:46:41 +0200
Quentin Glidic <sardemff7+wayland at sardemff7.net> wrote:

> From: Quentin Glidic <sardemff7+git at sardemff7.net>
> 
> We can then add tests which do not use Weston in the test suite.
> 
> Signed-off-by: Quentin Glidic <sardemff7+git at sardemff7.net>
> ---
>  tests/.gitignore  |  7 +------
>  tests/Makefile.am | 41 ++++++++++++++++++++++-------------------
>  2 files changed, 23 insertions(+), 25 deletions(-)
> 
> diff --git a/tests/.gitignore b/tests/.gitignore
> index fac1f7b..ad11240 100644
> --- a/tests/.gitignore
> +++ b/tests/.gitignore
> @@ -1,3 +1,4 @@
> +*.weston
>  logs
>  matrix-test
>  setbacklight
> @@ -6,11 +7,5 @@ test-text-client
>  wayland-test-client-protocol.h
>  wayland-test-protocol.c
>  wayland-test-server-protocol.h
> -text-test
> -keyboard-test
> -event-test
> -button-test
> -xwayland-test
>  subsurface-client-protocol.h
>  subsurface-protocol.c
> -subsurface-test
> diff --git a/tests/Makefile.am b/tests/Makefile.am
> index 9f711cf..a4e5a28 100644
> --- a/tests/Makefile.am
> +++ b/tests/Makefile.am
> @@ -5,17 +5,19 @@ module_tests =				\
>  	surface-global-test.la
>  
>  weston_tests =				\
> -	keyboard-test			\
> -	event-test			\
> -	button-test			\
> -	text-test			\
> -	subsurface-test			\
> +	keyboard.weston			\
> +	event.weston			\
> +	button.weston			\
> +	text.weston			\
> +	subsurface.weston		\
>  	$(xwayland_test)
>  
>  AM_TESTS_ENVIRONMENT = \
>  	abs_builddir='$(abs_builddir)'; export abs_builddir;
>  
> -LOG_COMPILER = $(srcdir)/weston-tests-env
> +TEST_EXTENSIONS = .la .weston
> +LA_LOG_COMPILER = $(srcdir)/weston-tests-env
> +WESTON_LOG_COMPILER = $(srcdir)/weston-tests-env
>  
>  clean-local:
>  	-rm -rf logs
> @@ -72,29 +74,30 @@ weston_test_client_libs =		\
>  	$(SIMPLE_CLIENT_LIBS)		\
>  	../shared/libshared.la
>  
> -keyboard_test_SOURCES = keyboard-test.c $(weston_test_client_src)
> -keyboard_test_LDADD = $(weston_test_client_libs)
> +keyboard_weston_SOURCES = keyboard-test.c $(weston_test_client_src)
> +keyboard_weston_LDADD = $(weston_test_client_libs)
>  
> -event_test_SOURCES = event-test.c $(weston_test_client_src)
> -event_test_LDADD = $(weston_test_client_libs)
> +event_weston_SOURCES = event-test.c $(weston_test_client_src)
> +event_weston_LDADD = $(weston_test_client_libs)
>  
> -button_test_SOURCES = button-test.c $(weston_test_client_src)
> -button_test_LDADD = $(weston_test_client_libs)
> +button_weston_SOURCES = button-test.c $(weston_test_client_src)
> +button_weston_LDADD = $(weston_test_client_libs)
>  
> -text_test_SOURCES =				\
> +text_weston_SOURCES =				\
>  	text-test.c				\
>  	../clients/text-protocol.c		\
>  	$(weston_test_client_src)
> -text_test_LDADD = $(weston_test_client_libs)
> +text_weston_LDADD = $(weston_test_client_libs)
>  
> -subsurface_test_SOURCES = subsurface-test.c $(weston_test_client_src)
> -subsurface_test_LDADD = $(weston_test_client_libs)
> +subsurface_weston_SOURCES = subsurface-test.c $(weston_test_client_src)
> +subsurface_weston_LDADD = $(weston_test_client_libs)
>  
> -xwayland_test_SOURCES = xwayland-test.c	$(weston_test_client_src)
> -xwayland_test_LDADD = $(weston_test_client_libs) $(XWAYLAND_TEST_LIBS)
> +xwayland_weston_SOURCES = xwayland-test.c	$(weston_test_client_src)
> +
> +xwayland_weston_LDADD = $(weston_test_client_libs) $(XWAYLAND_TEST_LIBS)
>  
>  if ENABLE_XWAYLAND_TEST
> -xwayland_test = xwayland_test
> +xwayland_test = xwayland.weston
>  endif
>  
>  matrix_test_SOURCES =				\

Seems to work ok to me. Would be nice to have a "non-weston" test here
to show off. One extra blank line above.


Thanks,
pq


More information about the wayland-devel mailing list