tests: allow weston test plugin to keep on running
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 21 Nov 2013 14:23:57 +0000 (16:23 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 22 Nov 2013 05:47:28 +0000 (21:47 -0800)
commitf72e4797f4d3397a76769b03253367f0210083b0
tree34afcd689be41ce23b1884d47223957ec36294c0
parentf812477fc037e0ae920b9d18f96057dacada420d
tests: allow weston test plugin to keep on running

If the environment variable WESTON_TEST_CLIENT_PATH is not set, do not
quit Weston in the test plugin.

This allows one to start Weston with the test plugin manually, and then
run any tests also manually, while observing Weston's behaviour over
time. This is useful for:
- Running a test multiple times and checking if Weston leaks (e.g. with
  Valgrind)
- Running tests manually on a backend that is not x11 or wayland,
  especially the backends that require weston-launch, and therefore
  cannot be used with the 'make check' machinery.

This change should not affect 'make check' behaviour, because there
WESTON_TEST_CLIENT_PATH is always set.

Cc: U. Artie Eoff <ullysses.a.eoff@intel.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
tests/weston-test.c