tests: use the headless backend to run the test suite
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@collabora.co.uk>
This commit is contained in:
committed by
Kristian Høgsberg
parent
08dbd31c4b
commit
943cb12075
@@ -17,14 +17,12 @@ OUTLOG="$LOGDIR/$1-log.txt"
|
|||||||
|
|
||||||
rm -f "$SERVERLOG"
|
rm -f "$SERVERLOG"
|
||||||
|
|
||||||
if test x$WAYLAND_DISPLAY != x; then
|
if test -z "$BACKEND"; then
|
||||||
BACKEND=$abs_builddir/.libs/wayland-backend.so
|
BACKEND=headless-backend.so
|
||||||
elif test x$DISPLAY != x; then
|
|
||||||
BACKEND=$abs_builddir/.libs/x11-backend.so
|
|
||||||
else
|
|
||||||
BACKEND=$abs_builddir/.libs/wayland-backend.so
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
BACKEND=$abs_builddir/.libs/$BACKEND
|
||||||
|
|
||||||
case $TESTNAME in
|
case $TESTNAME in
|
||||||
*.la|*.so)
|
*.la|*.so)
|
||||||
$WESTON --backend=$BACKEND \
|
$WESTON --backend=$BACKEND \
|
||||||
|
|||||||
Reference in New Issue
Block a user