diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-05-08 17:48:44 +0200 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-05-17 20:39:03 +0200 |
commit | 0085202fe26c3e96cf0f1dacf52388edf3005c5c (patch) | |
tree | ff1859837e01d6959aaf123545f648cbfe61a22d /test/v4l2_device | |
parent | 44937caa3d4be3e17e1402575431c3ef17704c90 (diff) |
test: v4l2_device: Switch most tests to vimc
The vimc driver delivers frames much faster then the vivid driver hence
most v4l2 device tests complete much quicker if vimc is used. The only
v4l2 device test which can't be switched is buffer_sharing as it needs
to import buffers somewhere, something vimc do not support.
With this change I manage to shave of almost 7 seconds for each run of
all v4l2 device tests.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/v4l2_device')
-rw-r--r-- | test/v4l2_device/capture_async.cpp | 2 | ||||
-rw-r--r-- | test/v4l2_device/double_open.cpp | 2 | ||||
-rw-r--r-- | test/v4l2_device/formats.cpp | 2 | ||||
-rw-r--r-- | test/v4l2_device/request_buffers.cpp | 2 | ||||
-rw-r--r-- | test/v4l2_device/stream_on_off.cpp | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/test/v4l2_device/capture_async.cpp b/test/v4l2_device/capture_async.cpp index fd428ff9..69b1d5a1 100644 --- a/test/v4l2_device/capture_async.cpp +++ b/test/v4l2_device/capture_async.cpp @@ -18,7 +18,7 @@ class CaptureAsyncTest : public V4L2DeviceTest { public: CaptureAsyncTest() - : V4L2DeviceTest("vivid", "vivid-000-vid-cap"), frames(0) {} + : V4L2DeviceTest("vimc", "Raw Capture 0"), frames(0) {} void receiveBuffer(Buffer *buffer) { diff --git a/test/v4l2_device/double_open.cpp b/test/v4l2_device/double_open.cpp index b402de04..53850620 100644 --- a/test/v4l2_device/double_open.cpp +++ b/test/v4l2_device/double_open.cpp @@ -15,7 +15,7 @@ class DoubleOpen : public V4L2DeviceTest { public: DoubleOpen() - : V4L2DeviceTest("vivid", "vivid-000-vid-cap") {} + : V4L2DeviceTest("vimc", "Raw Capture 0") {} protected: int run() { diff --git a/test/v4l2_device/formats.cpp b/test/v4l2_device/formats.cpp index 3ac47f5c..6be045ff 100644 --- a/test/v4l2_device/formats.cpp +++ b/test/v4l2_device/formats.cpp @@ -19,7 +19,7 @@ class Format : public V4L2DeviceTest { public: Format() - : V4L2DeviceTest("vivid", "vivid-000-vid-cap") {} + : V4L2DeviceTest("vimc", "Raw Capture 0") {} protected: int run() { diff --git a/test/v4l2_device/request_buffers.cpp b/test/v4l2_device/request_buffers.cpp index 794b083e..7b7b06b2 100644 --- a/test/v4l2_device/request_buffers.cpp +++ b/test/v4l2_device/request_buffers.cpp @@ -11,7 +11,7 @@ class RequestBuffersTest : public V4L2DeviceTest { public: RequestBuffersTest() - : V4L2DeviceTest("vivid", "vivid-000-vid-cap") {} + : V4L2DeviceTest("vimc", "Raw Capture 0") {} protected: int run() diff --git a/test/v4l2_device/stream_on_off.cpp b/test/v4l2_device/stream_on_off.cpp index 4902d5fd..b158b8e4 100644 --- a/test/v4l2_device/stream_on_off.cpp +++ b/test/v4l2_device/stream_on_off.cpp @@ -11,7 +11,7 @@ class StreamOnStreamOffTest : public V4L2DeviceTest { public: StreamOnStreamOffTest() - : V4L2DeviceTest("vivid", "vivid-000-vid-cap") {} + : V4L2DeviceTest("vimc", "Raw Capture 0") {} protected: int run() { |