From patchwork Wed Mar 6 02:47:50 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: 704 Return-Path: Received: from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net [195.74.38.228]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id CD047610B3 for ; Wed, 6 Mar 2019 03:48:15 +0100 (CET) X-Halon-ID: 3f9c7eed-3fba-11e9-985a-005056917f90 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [89.233.230.99]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id 3f9c7eed-3fba-11e9-985a-005056917f90; Wed, 06 Mar 2019 03:48:13 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Wed, 6 Mar 2019 03:47:50 +0100 Message-Id: <20190306024755.28726-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/5] 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, 06 Mar 2019 02:48:16 -0000 Hi, This series fixes a bug in the state machine and goes on to add basic tests for the camera implementation. The tests involve reading and setting formats, access control of the state machine and capturing frames. 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. Niklas Söderlund (5): libcamera: camera: Fix access bug in configureStreams() test: camera: Add read default format test test: camera: Add setting of format test test: camera: Add capture test test: camera: Add state machine test src/libcamera/camera.cpp | 2 +- test/camera/camera_test.cpp | 47 ++++++ test/camera/camera_test.h | 32 ++++ test/camera/capture.cpp | 130 ++++++++++++++++ test/camera/format_default.cpp | 71 +++++++++ test/camera/format_set.cpp | 88 +++++++++++ test/camera/meson.build | 15 ++ test/camera/statemachine.cpp | 275 +++++++++++++++++++++++++++++++++ test/meson.build | 1 + 9 files changed, 660 insertions(+), 1 deletion(-) 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/format_default.cpp create mode 100644 test/camera/format_set.cpp create mode 100644 test/camera/meson.build create mode 100644 test/camera/statemachine.cpp