[PATCH weston] tests: Use&Fix parallel tests

Kristian Høgsberg hoegsberg at gmail.com
Fri Feb 22 05:35:15 PST 2013


On Thu, Feb 21, 2013 at 09:01:23PM +0100, Quentin Glidic wrote:
> From: Quentin Glidic <sardemff7+git at sardemff7.net>
> 
> Also fix automake 1.13 support
> 
> Signed-off-by: Quentin Glidic <sardemff7+git at sardemff7.net>
> ---
> 
> This patch keeps automake 1.11 compatibility too

That sounds good, and the patch makes sense.  One day we should see if
we can do something like

     TEST_EXTENSIONS = .so
     SO_LOG_COMPILER = $(WESTON)
     AM_SO_LOG_FLAGS = --backend=$(BACKEND) etc
     LOG_COMPILER = $(WESTON)
     AM_LOG_FLAGS = --backend...

to get rid of weston-test-env, but lets go with this for now.

Kristian

>  configure.ac           | 2 +-
>  tests/Makefile.am      | 6 +++++-
>  tests/weston-tests-env | 2 ++
>  3 files changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 74eb892..d207ebb 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -18,7 +18,7 @@ AC_SUBST([WESTON_VERSION], [weston_version])
>  
>  AC_CONFIG_HEADERS([config.h])
>  
> -AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
> +AM_INIT_AUTOMAKE([1.11 parallel-tests foreign no-dist-gzip dist-xz])
>  
>  AM_SILENT_RULES([yes])
>  
> diff --git a/tests/Makefile.am b/tests/Makefile.am
> index 0f81458..2729545 100644
> --- a/tests/Makefile.am
> +++ b/tests/Makefile.am
> @@ -11,11 +11,15 @@ weston_tests =				\
>  	text-test			\
>  	$(xwayland_test)
>  
> -TESTS_ENVIRONMENT = $(SHELL) $(top_srcdir)/tests/weston-tests-env
> +AM_TESTS_ENVIRONMENT = \
> +	abs_builddir='$(abs_builddir)'; export abs_builddir;
> +
> +LOG_COMPILER = $(srcdir)/weston-tests-env
>  
>  clean-local:
>  	-rm -rf logs
>  
> +# To remove when automake 1.11 support is dropped
>  export abs_builddir
>  
>  noinst_LTLIBRARIES =			\
> diff --git a/tests/weston-tests-env b/tests/weston-tests-env
> index 159709e..2e5fa95 100755
> --- a/tests/weston-tests-env
> +++ b/tests/weston-tests-env
> @@ -21,12 +21,14 @@ fi
>  case $1 in
>  	*.la|*.so)
>  		$WESTON --backend=$BACKEND \
> +			--socket=test-$(basename $1) \
>  			--modules=$abs_builddir/.libs/${1/.la/.so},xwayland.so \
>  			--log="$SERVERLOG" \
>  			&> "$OUTLOG"
>  		;;
>  	*)
>  		WESTON_TEST_CLIENT_PATH=$abs_builddir/$1 $WESTON \
> +			--socket=test-$(basename $1) \
>  			--backend=$BACKEND \
>  			--log="$SERVERLOG" \
>  			--modules=$abs_builddir/.libs/weston-test.so,xwayland.so \
> -- 
> 1.8.1.2
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list