Skip to content

Commit

Permalink
dma-buf: Add selftests for dma-fence
Browse files Browse the repository at this point in the history
Exercise the dma-fence API exported to drivers.

Signed-off-by: Chris Wilson <[email protected]>
Cc: Daniel Vetter <[email protected]>
Acked-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
ickle committed Aug 19, 2019
1 parent 9536b64 commit 2989f64
Show file tree
Hide file tree
Showing 3 changed files with 578 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/dma-buf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ obj-$(CONFIG_SYNC_FILE) += sync_file.o
obj-$(CONFIG_SW_SYNC) += sw_sync.o sync_debug.o
obj-$(CONFIG_UDMABUF) += udmabuf.o

dmabuf_selftests-y := selftest.o
dmabuf_selftests-y := \
selftest.o \
st-dma-fence.o

obj-$(CONFIG_DMABUF_SELFTESTS) += dmabuf_selftests.o
1 change: 1 addition & 0 deletions drivers/dma-buf/selftests.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
* Tests are executed in order by igt/dmabuf_selftest
*/
selftest(sanitycheck, __sanitycheck__) /* keep first (igt selfcheck) */
selftest(dma_fence, dma_fence)
Loading

0 comments on commit 2989f64

Please sign in to comment.