aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/dmabuf-heaps/Makefile
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2019-10-21 19:03:10 +0000
committerSumit Semwal <sumit.semwal@linaro.org>2019-10-25 17:01:50 +0530
commitab87cc9754cdeb373c8ac030ac7aed92f450b767 (patch)
treef07a7b32afd260967eb8d701d086c34bcd4b23e5 /tools/testing/selftests/dmabuf-heaps/Makefile
parentdma-buf: heaps: Add CMA heap to dmabuf heaps (diff)
downloadwireguard-linux-ab87cc9754cdeb373c8ac030ac7aed92f450b767.tar.xz
wireguard-linux-ab87cc9754cdeb373c8ac030ac7aed92f450b767.zip
kselftests: Add dma-heap test
Add very trivial allocation and import test for dma-heaps, utilizing the vgem driver as a test importer. A good chunk of this code taken from: tools/testing/selftests/android/ion/ionmap_test.c Originally by Laura Abbott <labbott@redhat.com> Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org> Cc: Sumit Semwal <sumit.semwal@linaro.org> Cc: Liam Mark <lmark@codeaurora.org> Cc: Pratik Patel <pratikp@codeaurora.org> Cc: Brian Starkey <Brian.Starkey@arm.com> Cc: Vincent Donnefort <Vincent.Donnefort@arm.com> Cc: Sudipto Paul <Sudipto.Paul@arm.com> Cc: Andrew F. Davis <afd@ti.com> Cc: Christoph Hellwig <hch@infradead.org> Cc: Chenbo Feng <fengc@google.com> Cc: Alistair Strachan <astrachan@google.com> Cc: Hridya Valsaraju <hridya@google.com> Cc: Hillf Danton <hdanton@sina.com> Cc: dri-devel@lists.freedesktop.org Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> Reviewed-by: Brian Starkey <brian.starkey@arm.com> Acked-by: Laura Abbott <labbott@redhat.com> Tested-by: Ayan Kumar Halder <ayan.halder@arm.com> Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20191021190310.85221-6-john.stultz@linaro.org
Diffstat (limited to 'tools/testing/selftests/dmabuf-heaps/Makefile')
-rw-r--r--tools/testing/selftests/dmabuf-heaps/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/testing/selftests/dmabuf-heaps/Makefile b/tools/testing/selftests/dmabuf-heaps/Makefile
new file mode 100644
index 000000000000..8c4c36e2972d
--- /dev/null
+++ b/tools/testing/selftests/dmabuf-heaps/Makefile
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: GPL-2.0
+CFLAGS += -static -O3 -Wl,-no-as-needed -Wall
+#LDLIBS += -lrt -lpthread -lm
+
+# these are all "safe" tests that don't modify
+# system time or require escalated privileges
+TEST_GEN_PROGS = dmabuf-heap
+
+include ../lib.mk