weston/libweston
Daniel Stone e03c111e4e tests: Don't rely on build directory layout
Rather than having a hardcoded dependency on the build-directory layout,
use an explicit module-map environment variable, which rewrites requests
for modules and helper/libexec binaries to specific paths.

Pekka: This will help with migration to Meson where setting up the paths
according to autotools would be painful and unnecessary.

Emre: This should also help setting up the test suite after a
cross-compile.

Pekka: A caveat here is that this patch makes it slightly easier to load
external backends by abusing the module map. External backends are
specifically not supported in libweston.

Signed-off-by: Daniel Stone <daniels@collabora.com>

v2:

Fixed ivi_layout-test-plugin.c:wet_module_init().
Do not change the lookup name of ivi-layout.ivi.

Improved documentation of weston_module_path_from_env() and made it cope
with map strings that a) do not end with a semicolon, and b) have
multiple consecutive semicolons.

Let WESTON_MODULE_MAP be printed into the test log so that it is easier
to run tests manually.

Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Emre Ucan <eucan@de.adit-jv.com>

Suggested by Emil: Use a variable for strlen(name).

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2018-06-20 14:36:52 +03:00
..
animation.c
bindings.c
clipboard.c
compositor-drm.c
compositor-drm.h
compositor-fbdev.c
compositor-fbdev.h
compositor-headless.c
compositor-headless.h
compositor-rdp.c
compositor-rdp.h
compositor-wayland.c
compositor-wayland.h
compositor-x11.c
compositor-x11.h
compositor.c tests: Don't rely on build directory layout 2018-06-20 14:36:52 +03:00
compositor.h tests: Don't rely on build directory layout 2018-06-20 14:36:52 +03:00
data-device.c
dbus.c
dbus.h
gl-renderer.c
gl-renderer.h
input.c
launcher-direct.c
launcher-impl.h
launcher-logind.c
launcher-util.c
launcher-util.h
launcher-weston-launch.c
libbacklight.c
libbacklight.h
libinput-device.c
libinput-device.h
libinput-seat.c
libinput-seat.h
libweston-uninstalled.pc.in
libweston.pc.in
linux-dmabuf.c
linux-dmabuf.h
log.c
noop-renderer.c
pixel-formats.c
pixel-formats.h
pixman-renderer.c
pixman-renderer.h
plugin-registry.c
plugin-registry.h
screenshooter.c
spring-tool.c
timeline-object.h
timeline.c
timeline.h
touch-calibration.c
vaapi-recorder.c
vaapi-recorder.h
version.h.in
vertex-clipping.c
vertex-clipping.h
weston-launch.c
weston-launch.h
weston-sync-file.h
windowed-output-api.h
zoom.c