aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/media_tests/open_loop_test.sh
diff options
context:
space:
mode:
authorShuah Khan <shuahkh@osg.samsung.com>2016-06-17 18:12:04 -0600
committerShuah Khan <shuahkh@osg.samsung.com>2016-06-27 13:29:52 -0600
commitfe8777a8a0a144dee2eb59d00664184f1e49db4a (patch)
tree4d52746899386dba550b8a27dba04a2324247780 /tools/testing/selftests/media_tests/open_loop_test.sh
parentselftests: add media_device_open test (diff)
downloadwireguard-linux-fe8777a8a0a144dee2eb59d00664184f1e49db4a.tar.xz
wireguard-linux-fe8777a8a0a144dee2eb59d00664184f1e49db4a.zip
selftests: add media controller regression test scripts and document
Add regression test scripts open_loop_test.sh, and bind_unbind_sample.sh. Also add regression_test.txt that describes the regression test procedure. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/media_tests/open_loop_test.sh')
-rwxr-xr-xtools/testing/selftests/media_tests/open_loop_test.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/testing/selftests/media_tests/open_loop_test.sh b/tools/testing/selftests/media_tests/open_loop_test.sh
new file mode 100755
index 000000000000..dcd3c17efc17
--- /dev/null
+++ b/tools/testing/selftests/media_tests/open_loop_test.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+ i=0
+file=/dev/media$1
+ while :; do
+ echo $file
+ i=$((i+1))
+ R=$(./media_device_open -d $file);
+ # clear
+ echo -e "Loop $i\n$R"
+ done