summaryrefslogtreecommitdiff
path: root/tests/weston-tests-env
diff options
context:
space:
mode:
Diffstat (limited to 'tests/weston-tests-env')
-rwxr-xr-xtests/weston-tests-env12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/weston-tests-env b/tests/weston-tests-env
index b7322507..91800530 100755
--- a/tests/weston-tests-env
+++ b/tests/weston-tests-env
@@ -7,7 +7,7 @@ if test -z "$TESTNAME"; then
exit 1;
fi
-WESTON=$abs_builddir/../src/weston
+WESTON=$abs_builddir/weston
LOGDIR=$abs_builddir/logs
mkdir -p "$LOGDIR"
@@ -17,14 +17,12 @@ OUTLOG="$LOGDIR/$1-log.txt"
rm -f "$SERVERLOG"
-if test x$WAYLAND_DISPLAY != x; then
- BACKEND=$abs_builddir/../src/.libs/wayland-backend.so
-elif test x$DISPLAY != x; then
- BACKEND=$abs_builddir/../src/.libs/x11-backend.so
-else
- BACKEND=$abs_builddir/../src/.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 \