[PATCH 0/4] Add transform and scale tests

Micah Fedke micah.fedke at collabora.co.uk
Tue Feb 7 14:42:00 UTC 2017


With the test-desktop-shell in place, we can now add more weston feature tests.

This is a patch to add tests for the various transform and scale modes.  All
permutations of all transform modes and scales up to 3x are tested.  The
initial patches add some utilities necessary for these tests.

These tests do add more PNG files to repository, which is a concern that was
recently raised on the list, but the total size of reference/ is still quite
low and the trajectory is shallow enough that I don't think we need any radical
amendments to this approach yet.  Something to keep an eye on, though.


Micah Fedke (4):
  tests: add a blank reference png for test development
  tests: promote subsurface-shot-test's write_visual_diff() to a utility
    function
  tests: promote subsurface-shot-tests's check_screen() to a utility
    function
  tests: add transform and scale tests

 Makefile.am                                |   7 +-
 tests/reference/blank.png                  | Bin 0 -> 624 bytes
 tests/reference/transform_and_scale-01.png | Bin 0 -> 4133 bytes
 tests/reference/transform_and_scale-02.png | Bin 0 -> 2731 bytes
 tests/reference/transform_and_scale-03.png | Bin 0 -> 1544 bytes
 tests/reference/transform_and_scale-04.png | Bin 0 -> 4353 bytes
 tests/reference/transform_and_scale-05.png | Bin 0 -> 2918 bytes
 tests/reference/transform_and_scale-06.png | Bin 0 -> 1632 bytes
 tests/reference/transform_and_scale-07.png | Bin 0 -> 4097 bytes
 tests/reference/transform_and_scale-08.png | Bin 0 -> 2717 bytes
 tests/reference/transform_and_scale-09.png | Bin 0 -> 1500 bytes
 tests/reference/transform_and_scale-10.png | Bin 0 -> 4314 bytes
 tests/reference/transform_and_scale-11.png | Bin 0 -> 2918 bytes
 tests/reference/transform_and_scale-12.png | Bin 0 -> 1625 bytes
 tests/reference/transform_and_scale-13.png | Bin 0 -> 4051 bytes
 tests/reference/transform_and_scale-14.png | Bin 0 -> 2680 bytes
 tests/reference/transform_and_scale-15.png | Bin 0 -> 1512 bytes
 tests/reference/transform_and_scale-16.png | Bin 0 -> 4433 bytes
 tests/reference/transform_and_scale-17.png | Bin 0 -> 2969 bytes
 tests/reference/transform_and_scale-18.png | Bin 0 -> 1684 bytes
 tests/reference/transform_and_scale-19.png | Bin 0 -> 4089 bytes
 tests/reference/transform_and_scale-20.png | Bin 0 -> 2717 bytes
 tests/reference/transform_and_scale-21.png | Bin 0 -> 1507 bytes
 tests/reference/transform_and_scale-22.png | Bin 0 -> 4368 bytes
 tests/reference/transform_and_scale-23.png | Bin 0 -> 2893 bytes
 tests/reference/transform_and_scale-24.png | Bin 0 -> 1603 bytes
 tests/reference/weston-banner.png          | Bin 0 -> 3355 bytes
 tests/subsurface-shot-test.c               |  63 ----------------
 tests/transform-and-scale-shot-test.c      | 112 +++++++++++++++++++++++++++++
 tests/weston-test-client-helper.c          |  98 +++++++++++++++++++++++++
 tests/weston-test-client-helper.h          |   9 +++
 31 files changed, 225 insertions(+), 64 deletions(-)
 create mode 100644 tests/reference/blank.png
 create mode 100644 tests/reference/transform_and_scale-01.png
 create mode 100644 tests/reference/transform_and_scale-02.png
 create mode 100644 tests/reference/transform_and_scale-03.png
 create mode 100644 tests/reference/transform_and_scale-04.png
 create mode 100644 tests/reference/transform_and_scale-05.png
 create mode 100644 tests/reference/transform_and_scale-06.png
 create mode 100644 tests/reference/transform_and_scale-07.png
 create mode 100644 tests/reference/transform_and_scale-08.png
 create mode 100644 tests/reference/transform_and_scale-09.png
 create mode 100644 tests/reference/transform_and_scale-10.png
 create mode 100644 tests/reference/transform_and_scale-11.png
 create mode 100644 tests/reference/transform_and_scale-12.png
 create mode 100644 tests/reference/transform_and_scale-13.png
 create mode 100644 tests/reference/transform_and_scale-14.png
 create mode 100644 tests/reference/transform_and_scale-15.png
 create mode 100644 tests/reference/transform_and_scale-16.png
 create mode 100644 tests/reference/transform_and_scale-17.png
 create mode 100644 tests/reference/transform_and_scale-18.png
 create mode 100644 tests/reference/transform_and_scale-19.png
 create mode 100644 tests/reference/transform_and_scale-20.png
 create mode 100644 tests/reference/transform_and_scale-21.png
 create mode 100644 tests/reference/transform_and_scale-22.png
 create mode 100644 tests/reference/transform_and_scale-23.png
 create mode 100644 tests/reference/transform_and_scale-24.png
 create mode 100644 tests/reference/weston-banner.png
 create mode 100644 tests/transform-and-scale-shot-test.c

-- 
2.11.0



More information about the wayland-devel mailing list