From fb7069ee0559a89223e9bdac956ccdd413f3784e Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 24 Mar 2015 15:56:16 +0200 Subject: [PATCH] tests: use MODDIR in weston-tests-env Make a little short-hand for the module directory. This also cleans up the redefinition of BACKEND in the script. Signed-off-by: Pekka Paalanen Reviewed-by: Jonny Lamb Reviewed-by: Nobuhiko Tanibata Reviewed-by: Bryce Harrington --- tests/weston-tests-env | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/weston-tests-env b/tests/weston-tests-env index aaf3ee18..4d9ba883 100755 --- a/tests/weston-tests-env +++ b/tests/weston-tests-env @@ -21,19 +21,20 @@ if test -z "$BACKEND"; then BACKEND=headless-backend.so fi -BACKEND=$abs_builddir/.libs/$BACKEND -SHELL_PLUGIN=$abs_builddir/.libs/desktop-shell.so -TEST_PLUGIN=$abs_builddir/.libs/weston-test.so -XWAYLAND_PLUGIN=$abs_builddir/.libs/xwayland.so +MODDIR=$abs_builddir/.libs + +SHELL_PLUGIN=$MODDIR/desktop-shell.so +TEST_PLUGIN=$MODDIR/weston-test.so +XWAYLAND_PLUGIN=$MODDIR/xwayland.so case $TESTNAME in *.la|*.so) WESTON_BUILD_DIR=$abs_builddir \ - $WESTON --backend=$BACKEND \ + $WESTON --backend=$MODDIR/$BACKEND \ --no-config \ --shell=$SHELL_PLUGIN \ --socket=test-$(basename $TESTNAME) \ - --modules=$abs_builddir/.libs/${TESTNAME/.la/.so},$XWAYLAND_PLUGIN \ + --modules=$MODDIR/${TESTNAME/.la/.so},$XWAYLAND_PLUGIN \ --log="$SERVERLOG" \ &> "$OUTLOG" ;; @@ -41,7 +42,7 @@ case $TESTNAME in WESTON_BUILD_DIR=$abs_builddir \ WESTON_TEST_CLIENT_PATH=$abs_builddir/$TESTNAME $WESTON \ --socket=test-$(basename $TESTNAME) \ - --backend=$BACKEND \ + --backend=$MODDIR/$BACKEND \ --no-config \ --shell=$SHELL_PLUGIN \ --log="$SERVERLOG" \