From patchwork Wed May 8 16:58:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 1182 Return-Path: Received: from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 9F4D460E6E for ; Wed, 8 May 2019 18:58:34 +0200 (CEST) X-Halon-ID: 82dc74e4-71b2-11e9-81fd-0050569116f7 Authorized-sender: niklas@soderlund.pp.se Received: from localhost.localdomain (unknown [79.138.136.66]) by bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA id 82dc74e4-71b2-11e9-81fd-0050569116f7; Wed, 08 May 2019 18:58:32 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Wed, 8 May 2019 18:58:14 +0200 Message-Id: <20190508165814.26201-6-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190508165814.26201-1-niklas.soderlund@ragnatech.se> References: <20190508165814.26201-1-niklas.soderlund@ragnatech.se> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 5/5] test: v4l2_device: Switch most tests to vimc X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 May 2019 16:58:34 -0000 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 Reviewed-by: Laurent Pinchart --- test/v4l2_device/capture_async.cpp | 2 +- test/v4l2_device/double_open.cpp | 2 +- test/v4l2_device/formats.cpp | 2 +- test/v4l2_device/request_buffers.cpp | 2 +- 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 fd428ff909f32999..69b1d5a13ed8675a 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 b402de04fca5ddbb..53850620889b0972 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 3ac47f5cc665b62b..6be045ff754c4258 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 794b083eb84d8d2e..7b7b06b2b409bd23 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 4902d5fd6d58a73d..b158b8e402c83156 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() {