libcamera/test/camera
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
..
buffer_import.cpp test: camera: Increase timeout for vimc capture tests 2024-06-03 11:53:01 +03:00
camera_reconfigure.cpp test: camera_reconfigure: Qualify move() with std:: namespace 2022-11-08 17:51:02 +02:00
capture.cpp test: camera: Increase timeout for vimc capture tests 2024-06-03 11:53:01 +03:00
configuration_default.cpp test: Remove using namespace in header files 2021-10-15 05:05:43 +03:00
configuration_set.cpp test: Remove using namespace in header files 2021-10-15 05:05:43 +03:00
meson.build test: meson: Use dictionaries instead of arrays to store test information 2022-10-07 17:05:42 +03:00
statemachine.cpp test: Remove using namespace in header files 2021-10-15 05:05:43 +03:00