aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-16 11:18:01 (GMT)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-16 11:18:01 (GMT)
commit310d8e465a3a4aa54f94c6f718e28ca95d586f3a (patch)
treef98fda9e42cd1a294a065935d66039dcfa776eb4
parent2e4f399e3d5d367d00d06e4c53b24feb744bed65 (diff)
test-media: only unload media modules if -unload was given
When running virtme there is no need to unload media modules, so only do this if the -unload option is given. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rwxr-xr-xcontrib/test/test-media12
1 files changed, 10 insertions, 2 deletions
diff --git a/contrib/test/test-media b/contrib/test/test-media
index fef5454..f146739 100755
--- a/contrib/test/test-media
+++ b/contrib/test/test-media
@@ -9,12 +9,15 @@ vim2m=0
vimc=0
cec=0
cecpwr=--skip-test-standby-resume
+unload=0
if [ -z "$1" ]; then
- echo "usage: test-media all|mc|vivid|vim2m|vimc|cec|cec-pwr"
+ echo "usage: test-media [-unload] all|mc|vivid|vim2m|vimc|cec|cec-pwr"
echo
echo Run as root.
echo
+ echo "-unload: unload any media modules before testing"
+ echo
echo "'all' equals 'vivid vim2m vimc cec cec-pwr'"
echo "'mc' equals 'vivid vim2m vimc'"
echo "'cec' adds the CEC compliance tests, 'cec-pwr' adds the CEC standby/wakeup tests."
@@ -28,6 +31,9 @@ fi
while [ ! -z "$1" ]; do
case "$1" in
+ -unload)
+ unload=1
+ ;;
all)
vivid=1
vim2m=1
@@ -59,7 +65,9 @@ while [ ! -z "$1" ]; do
shift
done
-test-media-unload.pl
+if [ $unload -eq 1 ]; then
+ test-media-unload.pl
+fi
modprobe vivid n_devs=3 multiplanar=1,2,2 #allocators=0,1,1
sleep 1

Privacy Policy