From patchwork Mon Mar 11 02:22: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: 710 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 BCFD8600F9 for ; Mon, 11 Mar 2019 03:23:06 +0100 (CET) X-Halon-ID: 8d176391-43a4-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 8d176391-43a4-11e9-985a-005056917f90; Mon, 11 Mar 2019 03:23:02 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Mon, 11 Mar 2019 03:22:28 +0100 Message-Id: <20190311022232.4759-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 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: Mon, 11 Mar 2019 02:23:07 -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. 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 | 136 +++++++++++++ test/camera/configuration_default.cpp | 68 +++++++ test/camera/configuration_set.cpp | 90 +++++++++ test/camera/meson.build | 15 ++ test/camera/statemachine.cpp | 275 ++++++++++++++++++++++++++ test/meson.build | 1 + 8 files changed, 694 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