weston/tests
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
..
reference tests: add subsurface-shot test 2017-02-07 14:25:27 +02:00
.gitignore Revert "gitignore: Ignore generated header test files" 2015-05-26 23:22:19 -07:00
bad-buffer-test.c Remove redundant #include path component. 2015-06-15 17:11:09 -07:00
config-parser-test.c Re-apply "config-parser: Catch negative numbers assigned to unsigned config values" 2016-07-26 16:21:20 -07:00
devices-test.c tests: Add test for seat destruction and creation 2018-02-15 13:14:57 +02:00
event-test.c tests: Move wl_pointer tests to their own file 2017-12-12 12:17:08 +02:00
input-timestamps-helper.c tests: Introduce input timestamps helper 2018-02-20 10:20:29 +02:00
input-timestamps-helper.h tests: Introduce input timestamps helper 2018-02-20 10:20:29 +02:00
internal-screenshot-test.c tests: Add checks for pointer motion and button event timestamps 2017-12-18 11:27:43 +02:00
internal-screenshot.ini tests: Add internal test for the weston test screenshot capability 2015-05-21 15:06:11 -07:00
ivi_layout-internal-test.c tests: load ivi-shell test plugins as weston module 2018-02-07 11:54:53 +02:00
ivi_layout-test-plugin.c tests: Don't rely on build directory layout 2018-06-20 14:36:52 +03:00
ivi_layout-test.c ivi-shell: remove surface_set_orientation API 2017-07-24 13:32:48 +03:00
ivi-shell-app-test.c tests: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:19 -07:00
ivi-test.h ivi-shell: implement surface_on_many_layer test 2016-06-29 11:32:23 +03:00
keyboard-test.c libweston: Implement keyboard timestamps for input_timestamps_unstable_v1 2018-02-20 15:09:53 +02:00
matrix-test.c Remove redundant #include path component. 2015-06-15 17:11:09 -07:00
plugin-registry-test.c weston: Properly namespace modules entrypoint 2017-01-17 18:24:56 +01:00
pointer-test.c libweston: Implement pointer timestamps for input_timestamps_unstable_v1 2018-02-20 15:09:53 +02:00
presentation-test.c shared: Add timespec_from_proto helper function 2017-12-18 11:27:43 +02:00
roles-test.c tests: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:19 -07:00
setbacklight.c tests: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:19 -07:00
string-test.c tests: add missing include 2017-01-23 14:12:06 +02:00
subsurface-shot-test.c tests: Add checks for pointer motion and button event timestamps 2017-12-18 11:27:43 +02:00
subsurface-test.c Fix 'implicit fallthrough' warning with new GCC 2017-03-13 17:56:07 +00:00
surface-global-test.c weston: Properly namespace modules entrypoint 2017-01-17 18:24:56 +01:00
surface-screenshot.c file-util: allow specifying path separately in file_create_dated() 2018-02-09 15:16:07 +00:00
surface-test.c weston: Properly namespace modules entrypoint 2017-01-17 18:24:56 +01:00
text-test.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
timespec-test.c shared: Add timespec_eq helper function 2018-02-20 10:20:29 +02:00
touch-test.c libweston: Implement touch timestamps for input_timestamps_unstable_v1 2018-02-20 15:09:53 +02:00
vertex-clip-test.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
viewporter-test.c tests: introduce struct buffer for client-helper 2016-06-29 12:39:30 +03:00
weston-test-client-helper.c tests: Introduce input timestamps helper 2018-02-20 10:20:29 +02:00
weston-test-client-helper.h tests: Introduce input timestamps helper 2018-02-20 10:20:29 +02:00
weston-test-desktop-shell.c tests/shell: change background color 2017-02-07 13:26:26 +02:00
weston-test-runner.c tests: doc iterating in the runner 2017-02-07 14:25:27 +02:00
weston-test-runner.h tests: Mark tests as used so they don’t get removed at link time 2017-12-01 16:53:53 +00:00
weston-test.c libweston: notify_touch API to use weston_touch_device 2018-05-30 14:45:58 +03:00
weston-tests-env tests: Don't rely on build directory layout 2018-06-20 14:36:52 +03:00
xwayland-test.c tests: Skip Xwayland test if binary isn't available 2016-11-30 10:28:04 +00:00