aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-15 14:45:02 (GMT)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-15 14:45:02 (GMT)
commit2e4f399e3d5d367d00d06e4c53b24feb744bed65 (patch)
tree0f3233be2635ce605d2bb57412438727eb8e677c
parentfc9ac02399c1ee4fb7be0f4b57684ce3d9ca0072 (diff)
test-media: only modprobe drivers that are being tested
Originally all drivers were loaded to ensure fixed device node numbering. That is no longer needed, so only load drivers when they are being tested. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rwxr-xr-xcontrib/test/test-media14
1 files changed, 8 insertions, 6 deletions
diff --git a/contrib/test/test-media b/contrib/test/test-media
index 6b015d2..fef5454 100755
--- a/contrib/test/test-media
+++ b/contrib/test/test-media
@@ -62,8 +62,6 @@ done
test-media-unload.pl
modprobe vivid n_devs=3 multiplanar=1,2,2 #allocators=0,1,1
-modprobe vim2m
-modprobe vimc
sleep 1
v4l2-ctl -z platform:vivid-000 -d vivid-000-vid-cap -i3 -v width=3840,height=2160,pixelformat=NV24
@@ -73,10 +71,6 @@ v4l2-ctl -z platform:vivid-001 -d vivid-001-vid-out -o1 -x width=3840,height=216
v4l2-ctl -z platform:vivid-002 -d vivid-002-vid-cap -i3 -v width=3840,height=2160,pixelformat=NV24
v4l2-ctl -z platform:vivid-002 -d vivid-002-vid-out -o1 -x width=3840,height=2160,pixelformat=NM16
-media-ctl -d platform:vimc -V '1:0[fmt:SBGGR8_1X8/640x480]'
-media-ctl -d platform:vimc -V '5:0[fmt:SBGGR8_1X8/640x480]'
-v4l2-ctl -z platform:vimc -d "RGB/YUV Capture" -v width=1920,height=1440
-v4l2-ctl -z platform:vimc -d "Raw Capture 0" -v pixelformat=BA81
echo
tmp=`mktemp`
@@ -105,11 +99,19 @@ if [ $cec -eq 1 ]; then
fi
if [ $vim2m -eq 1 ]; then
+ modprobe vim2m
+ sleep 1
stdbuf -oL v4l2-compliance -m platform:vim2m -z platform:vivid-002 -e vivid-002-vid-cap -s10 -a 2>&1 | tee -a $tmp
echo
fi
if [ $vimc -eq 1 ]; then
+ modprobe vimc
+ sleep 1
+ media-ctl -d platform:vimc -V '1:0[fmt:SBGGR8_1X8/640x480]'
+ media-ctl -d platform:vimc -V '5:0[fmt:SBGGR8_1X8/640x480]'
+ v4l2-ctl -z platform:vimc -d "RGB/YUV Capture" -v width=1920,height=1440
+ v4l2-ctl -z platform:vimc -d "Raw Capture 0" -v pixelformat=BA81
stdbuf -oL v4l2-compliance -m platform:vimc -z platform:vivid-002 -e vivid-002-vid-cap -s10 -a 2>&1 | tee -a $tmp
echo
fi

Privacy Policy