1. 23 Feb, 2018 1 commit
    • Chris Wilson's avatar
      Iterate over physical engines · 305ebced
      Chris Wilson authored
      We current have a single for_each_engine() iterator which we use to
      generate both a set of uABI engines and a set of physical engines.
      Determining what uABI ring-id corresponds to an actual HW engine is
      tricky, so pull that out to a library function and introduce
      for_each_physical_engine() for cases where we want to issue requests
      once on each HW ring (avoiding aliasing issues).
      
      v2: Remember can_store_dword for gem_sync
      v3: Find more open-coded for_each_physical
      Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
      Reviewed-by: Tvrtko Ursulin's avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      305ebced
  2. 22 Feb, 2017 1 commit
  3. 02 Jan, 2017 1 commit
  4. 18 Oct, 2016 1 commit
  5. 17 Jun, 2016 1 commit
  6. 02 Jun, 2016 1 commit
  7. 10 May, 2016 1 commit
  8. 07 May, 2016 1 commit
  9. 12 Apr, 2016 2 commits
  10. 28 Mar, 2016 2 commits
  11. 25 Mar, 2016 1 commit
  12. 14 Mar, 2016 1 commit
  13. 10 Mar, 2016 1 commit
  14. 09 Mar, 2016 1 commit
  15. 08 Mar, 2016 1 commit
  16. 27 Jan, 2016 1 commit
  17. 16 Dec, 2015 1 commit
  18. 08 Dec, 2015 1 commit
  19. 13 Nov, 2015 1 commit
  20. 11 Sep, 2015 1 commit
  21. 21 Aug, 2015 1 commit
  22. 01 Jul, 2015 2 commits
  23. 26 Mar, 2015 3 commits
  24. 18 Mar, 2015 1 commit
  25. 06 Mar, 2015 1 commit
  26. 13 May, 2014 1 commit
  27. 22 Mar, 2014 2 commits
  28. 01 Nov, 2013 1 commit
    • Daniel Vetter's avatar
      lib: add igt_main macro · 071e9ca1
      Daniel Vetter authored
      In the past new testcases with subtest often forgot to add the call to
      igt_exit at the end of their main() function. That is now caught with
      a bit more obnoxious asserts, but it's still a nuissance.
      
      This little igt_main macro takes care of that (and also of calling the
      subtest machinery initialization code correctly).
      
      If no one objects I'll roll this out for all the simple cases (i.e.
      those tests that don't have additional argv parsing on top of the
      subtest machinery).
      
      v2: Roll it out across the board.
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      071e9ca1
  29. 25 Sep, 2013 1 commit
  30. 03 Sep, 2013 1 commit
  31. 14 Aug, 2013 1 commit
    • Daniel Vetter's avatar
      tests: roll out igt_fixture · b3880d3a
      Daniel Vetter authored
      Also sprinkle igt_assert and igt_require over the setup code to clean
      up code while at it. To avoid gcc getting upset about unitialized
      variables just move them out of main as global data (where they always
      get initialized to 0) - gcc can't see through our igt_fixture and
      igt_subtest maze properly.
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      b3880d3a
  32. 13 Aug, 2013 3 commits
    • Daniel Vetter's avatar
      tests: introduce igt_require · 8f5387eb
      Daniel Vetter authored
      Since igt_skip has funny control flow we can abuse it and make it work
      like a special kind of assert which automatically skips tests if a
      requirement fails.
      
      Note that in places where we have a less strict test which should
      always succeed (e.g. ioctl works or isn't available) the igt_assert
      should be place before the igt_require with the more strict
      requirements. Otherwise we'll skip a test instead of properly failing
      it.
      
      Convert a few users of igt_skip over to igt_require to showcase its
      use.
      
      v2: s/gem_check_/gem_require_/ so that we consistently use "require"
      to indicate magic check that can call igt_skip. Imo hiding the
      igt_require for feature checks is ok, but for more traditional assert
      like use cases an explicit igt_require might be better.
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      8f5387eb
    • Daniel Vetter's avatar
      tests: use igt_fail instead of exit(param != 0) · 5e25fcc2
      Daniel Vetter authored
      Mostly a sed job with too manual fixups:
      - one case of using _exit instead of exit
      - and one case which under some conditions use 77, so convert that
        check to an igt_skip.
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      5e25fcc2
    • Daniel Vetter's avatar
      tests: s/assert/igt_assert · 83440953
      Daniel Vetter authored
      Just a wholesale rollout for now, we can refine later on.
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      83440953