tests: Support weston_test request for adding a test seat
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>
Fri, 26 Jan 2018 16:48:00 +0000 (18:48 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 1 Feb 2018 10:54:48 +0000 (12:54 +0200)
commit85f8432911cdea1350709ab9a9ca525a0eefadff
tree4ac3a060748b03fc4b8103537060c89bed82ca7a
parentb0b598c73c621206fd6e306fc976bad40e94fd12
tests: Support weston_test request for adding a test seat

Support adding a test seat using the weston_test.device_add request.
This will be used in tests in upcoming commits where we will need to
re-add the seat after having it removed.

We only support one test seat at the moment, so this commit also
introduces checks to ensure the client doesn't try to create multiple
test seats or try to remove an already removed test seat.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
tests/weston-test.c