From patchwork Sat Dec 30 16:29:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 19351 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id B0D07BE175 for ; Sat, 30 Dec 2023 16:29:34 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C88BE62B58; Sat, 30 Dec 2023 17:29:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1703953773; bh=45qNO9KhOXm3l+Ns1fGPEv9wPm5Es6cripMhmdEWfBo=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=DzgvHcNikH7PYhKW2WMS77E/7y01M4oeqvh1B71ePiC0fopBBvQQAGnAYyAncpFv5 y6+vS1vjvz0bgvXBkoj0IvhC5rug/FguWuJdvoHAg7f/Tk4BoAtb+rtAFpda1sh2Xl URRFhw9KwsyfCDyUokhdUL/t7xO41CYehkCoRwdsJXgNjXT/suUpcZnVdlYbRlBDe7 slZEaZUbGaqEw9y9d/DpFH6SdgG3ZmbmxjCZ64SCyulLvYdh5iNl/IldhvUaM74dru S/7vaIHGSZ5FiuNZUYvHiCFkNlVSBcmx9Rarnn4EKtID3s9qO6tHMzCd09Xidkfpn0 fDzFf1CLRIS+A== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6E78061D89 for ; Sat, 30 Dec 2023 17:29:31 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="L5C3jljE"; dkim-atps=neutral Received: from localhost.localdomain (93-61-96-190.ip145.fastwebnet.it [93.61.96.190]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C316A842; Sat, 30 Dec 2023 17:28:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1703953714; bh=45qNO9KhOXm3l+Ns1fGPEv9wPm5Es6cripMhmdEWfBo=; h=From:To:Cc:Subject:Date:From; b=L5C3jljEtkvJshUfnUNxRG39fW+msCrwYOQjO6TsxQsXFHAHjTg+LnoQ7hx17LJG2 Oe5FaehEsSpDqDnpRuJ2hYcuxeYTLKe19uJcZKOvHgwrSfwihH16C0r4/8mLxJAl+F 7f4HlKd3h9XKwx9BHmYXo3CfkLN9iSOsYQ3JZwgE= To: libcamera-devel@lists.libcamera.org Date: Sat, 30 Dec 2023 17:29:05 +0100 Message-ID: <20231230162912.827669-1-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/7] apps: lc-compliance: Properties and multi-stream tests X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jacopo Mondi via libcamera-devel From: Jacopo Mondi Reply-To: Jacopo Mondi Cc: Jacopo Mondi Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" v2->v3: - Add support for multistream tests This is a refresh of patches Naush's patch [PATCH v1 6/8] libcamera: apps: lcc: Add multi-stream capture test framework v2->v1: - I forgot to move the newly added test in the test/ subdir Add a test case to validate that mandatory properties and controls are registered by a Camera and add support for testing multistream capture operations. Before adding new tests, a little refresh of the lc-compliance sources might help. I collected patches from the list for a few minor fixes and re-organized the source tree by splitting helpers/ and tests/ in dedicated sub-directory. Then add a test for controls and properties. Instrument the helper classes to work with multiple streams and roles and add a test suite for multi-stream capture operations. The series is based on "[PATCH 0/2] libcamera: Add support for required controls" on which the tests depend. Thanks j Jacopo Mondi (5): apps: lc-compliance: Fix typo in comment apps: lc-compliance: Re-organize source directory apps: lc-compliance: Test for mandatory controls apps: lc-compliance: Support multiple streams in helpers apps: lc-compliance: Add multi-stream tests NĂ­colas F. R. A. Prado (2): apps: lc-compliance: Fix source file ordering in meson.build apps: lc-compliance: Check that requests complete successfully src/apps/lc-compliance/capture_test.cpp | 135 ---------- src/apps/lc-compliance/helpers/capture.cpp | 235 ++++++++++++++++++ .../{simple_capture.h => helpers/capture.h} | 16 +- src/apps/lc-compliance/meson.build | 11 +- src/apps/lc-compliance/simple_capture.cpp | 190 -------------- src/apps/lc-compliance/tests/capture_test.cpp | 214 ++++++++++++++++ .../lc-compliance/tests/controls_test.cpp | 98 ++++++++ 7 files changed, 564 insertions(+), 335 deletions(-) delete mode 100644 src/apps/lc-compliance/capture_test.cpp create mode 100644 src/apps/lc-compliance/helpers/capture.cpp rename src/apps/lc-compliance/{simple_capture.h => helpers/capture.h} (73%) delete mode 100644 src/apps/lc-compliance/simple_capture.cpp create mode 100644 src/apps/lc-compliance/tests/capture_test.cpp create mode 100644 src/apps/lc-compliance/tests/controls_test.cpp --- 2.41.0