summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/media_tests/bind_unbind_sample.sh
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-08-01 16:52:08 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-08-01 16:52:08 -0400
commit5dd0bf621e84b9f48cbee8f4a31f4d68568aeaee (patch)
treea8b9ec9288c92794842b8380e6699bb0c2b9c3a6 /tools/testing/selftests/media_tests/bind_unbind_sample.sh
parent1571a03daf626ff34705e5fb40404879d00ac463 (diff)
parentd78388dbec256b179f1c42e714cf4acf630067c6 (diff)
downloadlinux-5dd0bf621e84b9f48cbee8f4a31f4d68568aeaee.tar.bz2
Merge tag 'linux-kselftest-4.8-rc1-update' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest updates from Shuah Khan: "This contains new tests and fixes: - a few fixes to existing tests - new media tests for testing driver unbind, and device removal paths while an user application is actively making system calls and ioctls" * tag 'linux-kselftest-4.8-rc1-update' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests: media_tests add a new video device test selftests: media_tests - Add media_device_open to .gitignore selftests: add media controller regression test scripts and document selftests: add media_device_open test selftests: media_device_test change it to randomize loop count selftests/vm: Don't mlockall MCL_CURRENT in on-fault-limit test selftests/vm: write strlen length instead of sizeof to nr_hugepages selftests/lib: set printf.sh executable
Diffstat (limited to 'tools/testing/selftests/media_tests/bind_unbind_sample.sh')
-rwxr-xr-xtools/testing/selftests/media_tests/bind_unbind_sample.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/testing/selftests/media_tests/bind_unbind_sample.sh b/tools/testing/selftests/media_tests/bind_unbind_sample.sh
new file mode 100755
index 000000000000..9f362f10631a
--- /dev/null
+++ b/tools/testing/selftests/media_tests/bind_unbind_sample.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+# Find device number in /sys/bus/usb/drivers/drivername
+# Edit this file to update the driver numer and name
+# Example test for uvcvideo driver
+#i=0
+# while :; do
+# i=$((i+1))
+# echo 1-5:1.0 > /sys/bus/usb/drivers/uvcvideo/unbind;
+# echo 1-5:1.0 > /sys/bus/usb/drivers/uvcvideo/bind;
+# clear
+# echo $i
+#done