test: v4l2_device: Allow each test to specify which device and entity to test

Prepare for different tests which implements V4L2DeviceTest to specify
which media device and entity they wish to test. There is no functional
changes, all tests still use vivid to perform there tests.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Niklas Söderlund 2019-05-08 17:37:04 +02:00
parent e1e440aad6
commit 4f8ba02bbc
8 changed files with 23 additions and 9 deletions

View file

@ -17,6 +17,9 @@ using namespace libcamera;
class Format : public V4L2DeviceTest
{
public:
Format()
: V4L2DeviceTest("vivid", "vivid-000-vid-cap") {}
protected:
int run()
{