aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-10-01 18:26:07 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-10-01 18:26:07 +0200
commit3f806630e2ecbcebe31872b865c5c4b42f111a99 (patch)
tree3f58384941982e70f66391c095659c16f2662df1
parent9bc2ad62d9b3b21be2aa58dbe8a3db34439228f4 (diff)
test-media: update vimc tests
The vimc driver is now a monolithic driver, so there are no more vimc-sensor etc. drivers. The vimc tests are updated accordingly. This vimc change also fixes some lifetime issues, so the 'unbind while streaming' test is enabled again. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rwxr-xr-xcontrib/test/test-media18
1 files changed, 4 insertions, 14 deletions
diff --git a/contrib/test/test-media b/contrib/test/test-media
index 144dcc9d..981d361c 100755
--- a/contrib/test/test-media
+++ b/contrib/test/test-media
@@ -397,30 +397,20 @@ if [ $vimc -eq 1 ]; then
echo
echo second unbind vimc
echo
+ # Max sleep time is 6 + 8 = 14s
for i in `v4l2-ctl -z platform:vimc --list-devices`; do
let "t = 6 + $RANDOM / 4096"
echo $i: sleep ${t}s
sleep $t <$i &
done
- # There are media controller lifetime issues that will cause a crash if this
- # is enabled. Fixing that is quite a major undertaking so for now disable this
- # test.
- #v4l2-ctl -z platform:vimc -d "Raw Capture 0" --stream-mmap --sleep 5 &
+ v4l2-ctl -z platform:vimc -d "Raw Capture 0" --stream-mmap --sleep 5 &
sleep 1
- for i in /sys/bus/platform/drivers/vimc-*; do
- for j in $i/vimc-*; do
- echo unbind ${j##*/} of $i
- echo -n ${j##*/} >$i/unbind
- done
- done
- sleep 5
- echo
echo -n vimc.0 >/sys/bus/platform/drivers/vimc/unbind
- sleep $reunbind_time
+ sleep 14
echo
echo rmmod vimc
echo
- rmmod vimc vimc_scaler vimc_debayer vimc_capture vimc_sensor vimc_streamer vimc_common
+ rmmod vimc
sleep $rmmod_time
if [ $kmemleak -eq 1 ]; then
echo

Privacy Policy