diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2017-08-28 14:10:14 -0700 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-10-10 14:11:28 +1000 |
commit | 55e09d07e85b6ac51d0cb2fefebb1eda6d4c12db (patch) | |
tree | 54166a9f88f81d205648fd4fffd734978f4f9791 /tests/Makefile.sources | |
parent | 4ba2d5ec4ec62fc72cfe4819137707d127af9875 (diff) |
tests/syncobj: Add some wait and reset tests (v7)
This adds both trivial error-checking tests as well as more complex
tests which actually test whether or not waits do what they're supposed
to do. They only currently work on i915 but it should be simple to hook
them up for other drivers by simply implementing the little function
pointer hook provided at the top for triggering a syncobj.
v2:
- Actually add the reset tests.
v3:
- Only do one execbuf for trigger
- Use do_ioctl and do_ioctl_err
- Better check for syncobj support
- Add local_/LOCAL_ defines of things
- Use a timer instead of a pthread
v4:
- Use ioctl wrappers
- Use VGEM instead of i915
- Combine a bunch of the simple tests into one function
v5:
- Combinatorially generate basic tests
- Use sw_sync instead of using vgem directly
- Add even more tests
v6:
- Rebase on the new SYNCOBJ_RESET API
- Add tests for SYNCOBJ_SIGNAL
v7:
- Improve the signal and reset bad pad tests
Reviewed-by: Dave Airlie <airlied@redhat.com>
[airlied: fix build]
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'tests/Makefile.sources')
-rw-r--r-- | tests/Makefile.sources | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Makefile.sources b/tests/Makefile.sources index c4d320eb..bb6652e2 100644 --- a/tests/Makefile.sources +++ b/tests/Makefile.sources @@ -232,6 +232,7 @@ TESTS_progs = \ prime_vgem \ sw_sync \ syncobj_basic \ + syncobj_wait \ template \ tools_test \ vgem_basic \ |