Hi, I did similar thing like is in Weston for testing static functions. Also, I wrote few wl_buffer unit tests. I appreaciate any comments :)
P. S.: based on mailing here: http://lists.freedesktop.org/archives/wayland-devel/2013-November/012299.html Thanks, Marek Ch Marek Ch (3): wayland-private: add define for testing static functions wayland-private: move struct wl_buffer into wayland-private.h tests: add tests for wl_buffer_* src/connection.c | 18 +--- src/wayland-private.h | 24 +++++ tests/Makefile.am | 12 ++- tests/buffer-test.c | 247 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 286 insertions(+), 15 deletions(-) create mode 100644 tests/buffer-test.c -- 1.8.4.2 _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel