aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/media_tests/Makefile
diff options
context:
space:
mode:
authorShuah Khan <shuahkh@osg.samsung.com>2016-02-12 17:43:31 -0700
committerShuah Khan <shuahkh@osg.samsung.com>2016-02-25 09:47:02 -0700
commit9d22f6e14e249713108c8adcc8705c39303f0628 (patch)
tree7672a2a9738424f4e883a50d0792cebda3e7550b /tools/testing/selftests/media_tests/Makefile
parentLinux 4.5-rc1 (diff)
downloadwireguard-linux-9d22f6e14e249713108c8adcc8705c39303f0628.tar.xz
wireguard-linux-9d22f6e14e249713108c8adcc8705c39303f0628.zip
selftests: add a new test for Media Controller API
This test opens user specified Media Device and calls MEDIA_IOC_DEVICE_INFO ioctl in a loop once every 10 seconds. This test is for detecting errors in device removal path. Usage: sudo ./media_device_test -d /dev/mediaX While test is running, remove the device and ensure there are no use after free errors and other Oops in the dmesg. Enable KaSan kernel config option for use-after-free error detection. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/media_tests/Makefile')
-rw-r--r--tools/testing/selftests/media_tests/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/selftests/media_tests/Makefile b/tools/testing/selftests/media_tests/Makefile
new file mode 100644
index 000000000000..7071bcc1d066
--- /dev/null
+++ b/tools/testing/selftests/media_tests/Makefile
@@ -0,0 +1,7 @@
+TEST_PROGS := media_device_test
+all: $(TEST_PROGS)
+
+include ../lib.mk
+
+clean:
+ rm -fr media_device_test