[PATCH weston 5/6] tests: use the headless backend to run the test suite

Emilio Pozuelo Monfort pochu27 at gmail.com
Thu Feb 6 03:30:35 PST 2014


From: Emilio Pozuelo Monfort <emilio.pozuelo at collabora.co.uk>

Other backends can be used by passing BACKEND=some-backend.so, e.g.

    $ make check BACKEND=x11-backend.so

Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo at collabora.co.uk>
---
 tests/weston-tests-env | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/tests/weston-tests-env b/tests/weston-tests-env
index 04b91a9..9180053 100755
--- a/tests/weston-tests-env
+++ b/tests/weston-tests-env
@@ -17,14 +17,12 @@ OUTLOG="$LOGDIR/$1-log.txt"
 
 rm -f "$SERVERLOG"
 
-if test x$WAYLAND_DISPLAY != x; then
-	BACKEND=$abs_builddir/.libs/wayland-backend.so
-elif test x$DISPLAY != x; then
-	BACKEND=$abs_builddir/.libs/x11-backend.so
-else
-	BACKEND=$abs_builddir/.libs/wayland-backend.so
+if test -z "$BACKEND"; then
+	BACKEND=headless-backend.so
 fi
 
+BACKEND=$abs_builddir/.libs/$BACKEND
+
 case $TESTNAME in
 	*.la|*.so)
 		$WESTON --backend=$BACKEND \
-- 
1.8.5.3



More information about the wayland-devel mailing list