[PATCH 0/3] Tests for vertex clipping

Sam Spilsbury smspillaz at gmail.com
Tue Sep 10 09:15:16 PDT 2013


This patch series adds some tests for the vertex clipping code. It splits the main
parts of calculate_edges out into clip_transformed exported in shared/vertex-clipping.c and
adds support for table-driven testing in tests/weston-test-runner.h .

Sam Spilsbury (3):
  Add support for table-driven testing.
  Split vertex clipping code out into vertex-clipping.c in shared/
  Added tests for the vertex clipping code.

 shared/vertex-clipping.c   | 317 +++++++++++++++++++++++++++++++++++++++++++++
 shared/vertex-clipping.h   |  65 ++++++++++
 src/Makefile.am            |   2 +
 src/gl-renderer.c          | 292 +----------------------------------------
 tests/Makefile.am          |  11 +-
 tests/vertex-clip-test.c   | 219 +++++++++++++++++++++++++++++++
 tests/weston-test-runner.c | 117 ++++++++++-------
 tests/weston-test-runner.h |  52 +++++---
 8 files changed, 725 insertions(+), 350 deletions(-)
 create mode 100644 shared/vertex-clipping.c
 create mode 100644 shared/vertex-clipping.h
 create mode 100644 tests/vertex-clip-test.c

-- 
1.8.3.2



More information about the wayland-devel mailing list