tests: Use&Fix parallel tests

Also fix automake 1.13 support

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
dev
Quentin Glidic 12 years ago committed by Kristian Høgsberg
parent dda9d78ec9
commit f14977f854
  1. 2
      configure.ac
  2. 6
      tests/Makefile.am
  3. 2
      tests/weston-tests-env

@ -18,7 +18,7 @@ AC_SUBST([WESTON_VERSION], [weston_version])
AC_CONFIG_HEADERS([config.h]) 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]) AM_SILENT_RULES([yes])

@ -11,11 +11,15 @@ weston_tests = \
text-test \ text-test \
$(xwayland_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: clean-local:
-rm -rf logs -rm -rf logs
# To remove when automake 1.11 support is dropped
export abs_builddir export abs_builddir
noinst_LTLIBRARIES = \ noinst_LTLIBRARIES = \

@ -21,12 +21,14 @@ fi
case $1 in case $1 in
*.la|*.so) *.la|*.so)
$WESTON --backend=$BACKEND \ $WESTON --backend=$BACKEND \
--socket=test-$(basename $1) \
--modules=$abs_builddir/.libs/${1/.la/.so},xwayland.so \ --modules=$abs_builddir/.libs/${1/.la/.so},xwayland.so \
--log="$SERVERLOG" \ --log="$SERVERLOG" \
&> "$OUTLOG" &> "$OUTLOG"
;; ;;
*) *)
WESTON_TEST_CLIENT_PATH=$abs_builddir/$1 $WESTON \ WESTON_TEST_CLIENT_PATH=$abs_builddir/$1 $WESTON \
--socket=test-$(basename $1) \
--backend=$BACKEND \ --backend=$BACKEND \
--log="$SERVERLOG" \ --log="$SERVERLOG" \
--modules=$abs_builddir/.libs/weston-test.so,xwayland.so \ --modules=$abs_builddir/.libs/weston-test.so,xwayland.so \

Loading…
Cancel
Save