1 #ifndef _TEST_RUNNER_H_
2 #define _TEST_RUNNER_H_
5 #error "Tests must not be built with NDEBUG defined, they rely on assert()."
8 #include "../src/compositor.h"
12 void (*run)(struct weston_compositor *compositor);
13 } __attribute__ ((aligned (16)));
16 static void name(struct weston_compositor *compositor); \
18 const struct test test##name \
19 __attribute__ ((section ("test_section"))) = { \
23 static void name(struct weston_compositor *compositor)
26 struct weston_compositor *compositor;
27 struct wl_client *client;
28 struct weston_process proc;
35 void (*handle)(struct test_client *client);
39 struct test_client *test_client_launch(struct weston_compositor *compositor);
40 void test_client_send(struct test_client *client, const char *fmt, ...);