Kieran Bingham
ba4dfa7471
test: v4l2_device: Provide asynchronous capture test
...
Utilise the event_dispatcher to create a default event loop, and process
asynchronous buffer receive events.
If no frames are captured in 5 seconds, the test will fail.
It will also fail if less than 30 frames have been captured in the same
timeout period.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com >
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org >
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se >
2019-02-06 06:49:43 +02:00
Kieran Bingham
d2046d863b
test: v4l2_device: Add StreamOn/StreamOff test
...
Provide a small test to exercise the streamOn() and streamOff() calls.
8 buffers are requested locally.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com >
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org >
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se >
2019-02-06 06:49:41 +02:00
Kieran Bingham
2843f951d5
test: v4l2_device: Add request_buffers test
...
Add a utility to the test suite to request and allocate buffers from
a V4L2Device to ensure it functions correctly.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com >
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org >
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se >
2019-02-06 06:49:31 +02:00
Kieran Bingham
93ec63b867
test: v4l2_device: Use DeviceEnumerator to find a UVCVideo
...
Utilise the existing DeviceEnumerator system to identify a suitable
V4L2Device for testing.
Specifically target these tests at a uvcvideo driver based device as a known
supported target.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com >
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org >
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se >
2019-02-06 06:49:25 +02:00
Kieran Bingham
479264dfca
test: v4l2_device: Add test suite and initial test
...
Provide a base class to construct a v4l2_device object for further tests
and an initial test which validates the FD handle can not be leaked.
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se >
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com >
2019-01-17 21:55:27 +00:00