summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2014-08-21 11:32:38 -0500
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-08-22 17:47:33 +0300
commitc7210434d45cff0135e42bd3047988e1274d49dd (patch)
treed02d76301beeda015f4ecaee650800173cd0487a /tests
parent3d3f48548ad4691fbc7fbc12486ff61bca0779df (diff)
downloadweston-c7210434d45cff0135e42bd3047988e1274d49dd.tar.gz
weston-c7210434d45cff0135e42bd3047988e1274d49dd.tar.bz2
weston-c7210434d45cff0135e42bd3047988e1274d49dd.zip
tests: allow running make check without make install
desktop shell and weston keyboard both refer to themselves prefixed by LIBEXECDIR, however this is only valid once installed. make check will currently either fail or run pre-existing versions. This patch adds a way to override that location by setting the env var WESTON_BUILD_DIR - which is then set by the test env script so make check will test the versions in the build directory regardless of whether they're installed or not. Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/weston-tests-env2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/weston-tests-env b/tests/weston-tests-env
index 473e0925..e332354c 100755
--- a/tests/weston-tests-env
+++ b/tests/weston-tests-env
@@ -28,6 +28,7 @@ XWAYLAND_PLUGIN=$abs_builddir/.libs/xwayland.so
case $TESTNAME in
*.la|*.so)
+ WESTON_BUILD_DIR=$abs_builddir \
$WESTON --backend=$BACKEND \
--no-config \
--shell=$SHELL_PLUGIN \
@@ -37,6 +38,7 @@ case $TESTNAME in
&> "$OUTLOG"
;;
*)
+ WESTON_BUILD_DIR=$abs_builddir \
WESTON_TEST_CLIENT_PATH=$abs_builddir/$TESTNAME $WESTON \
--socket=test-$(basename $TESTNAME) \
--backend=$BACKEND \