libcamera/test
Laurent Pinchart 0554a55427 test: camera: Increase timeout for vimc capture tests
On slower machines, a 1s timeout to capture frames with vimc can be too
short and cause test failures. Make the timeout proportional to the
number of frames expected to be captured, using a conservative low
estimate of the frame rate at 2fps.

By itself, that change could increase the test time quite substantially
on fast platforms, so break from the capture loop as soon as we capture
enough frames. To do so, interrupt the dispatcher at every request
completion, or it will only get interrupted after the timer times out.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
2024-06-03 11:53:01 +03:00
..
camera test: camera: Increase timeout for vimc capture tests 2024-06-03 11:53:01 +03:00
controls libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
gstreamer test: gstreamer: Simplify single stream test 2024-05-13 16:33:43 +03:00
ipa test: ipa: rkisp1-utils: Fix capitalization of hex numbers 2024-05-31 23:29:41 +09:00
ipc libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
libtest libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
log libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
media_device libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
process libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
py py: unittests.py: Fix type checker warnings 2023-06-04 16:10:51 +03:00
serialization libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
stream libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
v4l2_compat libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
v4l2_subdevice libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
v4l2_videodevice libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
bayer-format.cpp libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
byte-stream-buffer.cpp libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
camera-sensor.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
color-space.cpp test: Add a ColorSpace test 2022-08-26 01:04:27 +03:00
delayed_controls.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
event-dispatcher.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
event-thread.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
event.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
fence.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
file.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
flags.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
geometry.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
hotplug-cameras.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
mapped-buffer.cpp test: Remove using namespace in header files 2021-10-15 05:05:43 +03:00
meson.build test: Don't add current build directory to include path 2024-05-07 19:35:43 +03:00
message.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
object-delete.cpp libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
object-invoke.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
object.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
pixel-format.cpp libcamera/base: Move utils to the base library 2021-06-25 16:11:02 +01:00
public-api.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
shared-fd.cpp libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
signal-threads.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
signal.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
span.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
threads.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
timer-fail.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
timer-thread.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
timer.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
transform.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
unique-fd.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
utils.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
yaml-parser.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00