1. 23 Nov, 2016 2 commits
    • Pekka Paalanen's avatar
      tests: add scanner tests · c9f64544
      Pekka Paalanen authored
      Add tests that ensure that wayland-scanner output for a given input does
      not change unexpectedly. This makes it very easy to review
      wayland-scanner patches.
      Before, when patches were proposed for wayland-scanner, I had to
      build wayland without the patches, save the generated files into a
      temporary directory, apply the patches, build again, and diff the old
      vs. new generated file.
      No more. Now whenever someone makes intentional changes to
      wayland-scanner's output, he will also have to patch the example output
      files to match. That means that reviewers see the diff of the generated
      files straight from the patch itself. Verifying the diff is true is as
      easy as 'make check'.
      The tests use separate example XML files instead of wayland.xml
      directly, so that wayland.xml can be updated without fixing scanner
      tests, avoiding the churn.
      example.xml starts as a copy of wayland.xml. If wayland.xml starts using
      new wayland-scanner features, they should be copied into example.xml
      again to be covered by the tests.
      This patch relies on the previous patch to actually add all the data
      files for input and reference output.
      The scanner output is fed through sed to remove parts that are allowed
      to vary: the scanner version string.
      v2: no need for scanner-test.sh to depend on the test data
      Task: https://phabricator.freedesktop.org/T3313Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      Reviewed-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> (v1)
      Reviewed-by: default avatarYong Bakos <ybakos@humanoriented.com>
      Tested-by: default avatarYong Bakos <ybakos@humanoriented.com>
    • Pekka Paalanen's avatar
      tests: add data files for future wayland-scanner test · 992b451d
      Pekka Paalanen authored
      This patch adds the input and reference output data files for the
      wayland-scanner tests to be added by the following patch.
      The data files are split into their own patch because they are extremely
      uninteresting to review:
      - example.xml is just a copy wayland.xml from 1.12.0
      - small.xml is a tiny dummy definition used for testing scanner
        variations without causing lots of big output files
      - the other files are wayland-scanner products from the xml files
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      Reviewed-by: default avatarEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
      v2: update output due to 2c6350beAcked-by: default avatarYong Bakos <ybakos@humanoriented.com>
  2. 21 Nov, 2016 9 commits
  3. 18 Nov, 2016 4 commits
  4. 17 Nov, 2016 1 commit
  5. 16 Nov, 2016 6 commits
  6. 10 Nov, 2016 8 commits
  7. 18 Oct, 2016 5 commits
  8. 26 Sep, 2016 1 commit
  9. 22 Sep, 2016 1 commit
  10. 20 Sep, 2016 1 commit
  11. 13 Sep, 2016 2 commits