tests: allow running make check without make install
authorDerek Foreman <derekf@osg.samsung.com>
Thu, 21 Aug 2014 16:32:38 +0000 (11:32 -0500)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 22 Aug 2014 14:47:33 +0000 (17:47 +0300)
commitc7210434d45cff0135e42bd3047988e1274d49dd
treed02d76301beeda015f4ecaee650800173cd0487a
parent3d3f48548ad4691fbc7fbc12486ff61bca0779df
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>
desktop-shell/shell.c
shared/config-parser.c
shared/config-parser.h
src/screenshooter.c
src/text-backend.c
tests/weston-tests-env