1. 30 Sep, 2020 1 commit
  2. 05 Sep, 2020 1 commit
    • Igor Matheus Andrade Torrente's avatar
      tests: Add a way to write a Weston.ini inside the test · ad41a885
      Igor Matheus Andrade Torrente authored
      
      
      Currently doesn't exist a standard way to write a weston.ini inside a test.
      
      Here, two new functions `weston_ini_setup` and `cfgln` are introduced to
      help the test writer to write a weston.ini file and load it to the test.
      And `internal-screenshot-test` is converted to use the new method of write
      a weston.ini. This conversion serves as example and initial API test.
      
      The tester needs to call `weston_test_harness_execute_as_client` or
      `weston_test_harness_execute_as_plugin` in the same way as before.
      The `weston_ini_setup` will fill the setup->config_file with the
      correct path to the weston.ini file.
      
      The main design goal is to avoid pre-made or build-made weston.ini(s)
      and keep the test as self-contained as possible.
      
      Closes:#410
      Signed-off-by: default avatarIgor Matheus Andrade Torrente <igormtorrente@gmail.com>
      ad41a885
  3. 27 Feb, 2020 1 commit
    • Pekka Paalanen's avatar
      tests: implement client_destroy() · 080d85b8
      Pekka Paalanen authored
      
      
      It turns out that if the client is not explicitly destroyed, it will remain
      connected until the compositor shuts down because there is no more a client
      process that would terminate.
      
      Usually this is not a problem, but if a test file has multiple screenshooting
      tests, the windows from earlier tests in the file will remain on screen. That
      is not wanted, hence implement client destruction.
      
      To properly destroy a client, we also need a list of outputs. They used to be
      simply leaked. This does not fix wl_registry.global_remove for wl_outputs, that
      is left for a time when a test will actually need that.
      
      This patch makes only ivi-shell-app test use the new client_destroy() to show
      that it actually works. The added log scopes prove it: destroy requests get
      sent. Sprinkling client_destroy() around in all other tests is left for a time
      when it is actually necessary.
      
      ivi-shell-app is a nicely simple test doing little else, hence I picked it.
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.com>
      080d85b8
  4. 30 Jan, 2020 1 commit
  5. 22 Nov, 2019 1 commit
    • Pekka Paalanen's avatar
      tests: replace fprintf() with testlog() · 12a138d5
      Pekka Paalanen authored
      
      
      When we move on to TAP, stdout will be reserved for TAP and stderr is for free
      chatter. Set up an example that tests should use testlog() instead of fprintf
      or printf to chat in the right place.
      
      Most statements were already printing to stderr, so this just makes then a
      little shorter. There are also some statements that printed to stdout and are
      now corrected.
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.com>
      12a138d5
  6. 21 Nov, 2019 1 commit
  7. 15 Jun, 2015 1 commit
  8. 09 Apr, 2015 1 commit
  9. 02 Apr, 2015 1 commit
  10. 24 Feb, 2015 1 commit
  11. 28 Nov, 2014 1 commit
  12. 07 Apr, 2014 1 commit
    • Andrew Wedgbury's avatar
      Make sure config.h is included before any system headers · 9cd661e7
      Andrew Wedgbury authored
      
      
      There was an issue recently in screen-share.c where config.h was not
      being included, resulting in the wrong definition for off_t being used on
      32 bit systems. I checked and I don't think this problem is happening
      elsewhere, but to help avoid this sort of problem in the future, I went
      through and made sure that config.h is included first whenever system
      headers are included.
      
      The config.h header should be included before any system headers, failing
      to do this can result in the wrong type sizes being defined on certain
      systems, e.g. off_t from sys/types.h
      Signed-off-by: default avatarAndrew Wedgbury <andrew.wedgbury@realvnc.com>
      9cd661e7
  13. 12 Dec, 2012 3 commits
    • Pekka Paalanen's avatar
      tests: check wl_display_roundtrip() for errors · f2aa64f1
      Pekka Paalanen authored
      
      
      Add a macro that wraps wl_display_roundtrip() and check for errors. It
      is a macro, so that the assert would show the relevant file and line
      number.
      
      This will also catch protocol errors, that would go unnoticed otherwise.
      
      All roundtrips in tests are replaced with the check.
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <ppaalanen@gmail.com>
      f2aa64f1
    • Kristian Høgsberg's avatar
      tests: Drop yield() helper function · ba0cfdd2
      Kristian Høgsberg authored
      Remaining use case was when we move the pointer.  This doesn't change
      geometry so we can just use a wl_display_roundtrip() to make sure
      we get the request to the server and receive the resulting events.
      ba0cfdd2
    • Kristian Høgsberg's avatar
      button-test: Use wl_display_roundtrip instead of yield() · f63fab72
      Kristian Høgsberg authored
      A round trip is sufficient here.  We need to make sure that the server
      has received the wl_test request and that we've received the event
      that the request triggers.  The wl_display_roundtrip() helper does
      exactly that: it sends a wl_display.sync request, which will hit the
      server after the wl_test requests and thus the wl_callback.done event
      will come back after the server has seen all the previous requests and
      after we've handled all preceeding event.
      f63fab72
  14. 11 Dec, 2012 1 commit
  15. 04 Oct, 2012 1 commit