tests: migrate linux-explicit-synchronization
Moved to the new test harness. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
701676d8c6
commit
dd13498862
|
@ -31,11 +31,23 @@
|
||||||
#include "linux-explicit-synchronization-unstable-v1-client-protocol.h"
|
#include "linux-explicit-synchronization-unstable-v1-client-protocol.h"
|
||||||
#include "weston-test-client-helper.h"
|
#include "weston-test-client-helper.h"
|
||||||
#include "wayland-server-protocol.h"
|
#include "wayland-server-protocol.h"
|
||||||
|
#include "weston-test-fixture-compositor.h"
|
||||||
|
|
||||||
/* We need to use the pixman renderer, since a few of the tests depend
|
static enum test_result_code
|
||||||
* on the renderer holding onto a surface buffer until the next one
|
fixture_setup(struct weston_test_harness *harness)
|
||||||
* is committed, which the noop renderer doesn't do. */
|
{
|
||||||
char *server_parameters = "--use-pixman";
|
struct compositor_setup setup;
|
||||||
|
|
||||||
|
compositor_setup_defaults(&setup);
|
||||||
|
|
||||||
|
/* We need to use the pixman renderer, since a few of the tests depend
|
||||||
|
* on the renderer holding onto a surface buffer until the next one
|
||||||
|
* is committed, which the noop renderer doesn't do. */
|
||||||
|
setup.renderer = RENDERER_PIXMAN;
|
||||||
|
|
||||||
|
return weston_test_harness_execute_as_client(harness, &setup);
|
||||||
|
}
|
||||||
|
DECLARE_FIXTURE_SETUP(fixture_setup);
|
||||||
|
|
||||||
static struct zwp_linux_explicit_synchronization_v1 *
|
static struct zwp_linux_explicit_synchronization_v1 *
|
||||||
get_linux_explicit_synchronization(struct client *client)
|
get_linux_explicit_synchronization(struct client *client)
|
||||||
|
|
|
@ -124,6 +124,14 @@ tests = [
|
||||||
input_timestamps_unstable_v1_protocol_c,
|
input_timestamps_unstable_v1_protocol_c,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'name': 'linux-explicit-synchronization',
|
||||||
|
'sources': [
|
||||||
|
'linux-explicit-synchronization-test.c',
|
||||||
|
linux_explicit_synchronization_unstable_v1_client_protocol_h,
|
||||||
|
linux_explicit_synchronization_unstable_v1_protocol_c,
|
||||||
|
],
|
||||||
|
},
|
||||||
{ 'name': 'plugin-registry', },
|
{ 'name': 'plugin-registry', },
|
||||||
{
|
{
|
||||||
'name': 'pointer',
|
'name': 'pointer',
|
||||||
|
@ -193,13 +201,6 @@ tests_standalone = [
|
||||||
]
|
]
|
||||||
|
|
||||||
tests_weston = [
|
tests_weston = [
|
||||||
[
|
|
||||||
'linux-explicit-synchronization',
|
|
||||||
[
|
|
||||||
linux_explicit_synchronization_unstable_v1_client_protocol_h,
|
|
||||||
linux_explicit_synchronization_unstable_v1_protocol_c,
|
|
||||||
]
|
|
||||||
],
|
|
||||||
]
|
]
|
||||||
|
|
||||||
if get_option('xwayland')
|
if get_option('xwayland')
|
||||||
|
|
Loading…
Reference in New Issue