diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2014-02-07 09:34:47 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2014-02-18 13:50:24 -0800 |
commit | 943cb120754ab1720410d8dfa35560e570a5944e (patch) | |
tree | fd1f9579ebb708c67c2fcec81a1042a156c411c4 /tests | |
parent | 08dbd31c4bc03e0aa3051e869a61a1294a90cf59 (diff) | |
download | weston-943cb120754ab1720410d8dfa35560e570a5944e.tar.gz |
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>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/weston-tests-env | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/weston-tests-env b/tests/weston-tests-env index 04b91a93..91800530 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 \ |