From patchwork Wed Mar 13 01:05:28 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: 730 Return-Path: Received: from vsp-unauthed02.binero.net (vsp-unauthed02.binero.net [195.74.38.227]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8BEE7600FD for ; Wed, 13 Mar 2019 02:06:19 +0100 (CET) X-Halon-ID: 30d0e336-452c-11e9-846a-005056917a89 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [89.233.230.99]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id 30d0e336-452c-11e9-846a-005056917a89; Wed, 13 Mar 2019 02:06:17 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Wed, 13 Mar 2019 02:05:28 +0100 Message-Id: <20190313010532.28960-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/4] test: camera: Add basic tests for the camera 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, 13 Mar 2019 01:06:19 -0000 Hi, This series add basic tests for the camera implementation. The tests involve reading and setting configurations, access control of the state machine and capturing. All tests uses the vimc pipeline to allow the tests to run on as many platforms as possible. Down the line this might be expanded to run an all cameras detected by libcamera. All patches in the series are reviewed but I feel that posting it for one more round is the right thing to do. If no comments come to light within a day or two I aim to push this series. If you wish to review this but don't have time ping and I will delay until you have had time to do so. * Changes since v2 - Update all error messages if a test should fail. Niklas Söderlund (4): test: camera: Add read default configuration test test: camera: Add setting of configuration test test: camera: Add capture test test: camera: Add state machine test test/camera/camera_test.cpp | 74 +++++++ test/camera/camera_test.h | 35 ++++ test/camera/capture.cpp | 142 +++++++++++++ test/camera/configuration_default.cpp | 71 +++++++ test/camera/configuration_set.cpp | 91 +++++++++ test/camera/meson.build | 15 ++ test/camera/statemachine.cpp | 275 ++++++++++++++++++++++++++ test/meson.build | 1 + 8 files changed, 704 insertions(+) create mode 100644 test/camera/camera_test.cpp create mode 100644 test/camera/camera_test.h create mode 100644 test/camera/capture.cpp create mode 100644 test/camera/configuration_default.cpp create mode 100644 test/camera/configuration_set.cpp create mode 100644 test/camera/meson.build create mode 100644 test/camera/statemachine.cpp Reviewed-by: Kieran Bingham