From patchwork Fri Dec 22 16:40:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 19337 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 A7E1BC31E9 for ; Fri, 22 Dec 2023 16:40:51 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E646261D8F; Fri, 22 Dec 2023 17:40:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1703263251; bh=OkmObDWuXU2g79DyzgacGXxG1XsadK5Q7h3xpEvCZq0=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=gReEwxTFqzKverH0/vlwJqumoqE2/dDNRDGVEPdjh0t7takq5TTx6S8mJx1QyMJsw 0tyWbrULMT5PQ1/ehi3+brN+/B1Og0a3NBm4w6OC67eU3dAIze0REmxOHJZmAK5qEC 2TskDr4Z+Vj2qe994ILtFeE8ZEN7BvnNe4WKGJRkIgKZJZZPPzPMTepDRJo0j6f2NZ a8r9sbdfCz0eoNzhhYCnhXSAHJE2ooE6Apvk7LVVCN2z8RCUy77TbNhGNMLHSswLGR WNphdyHsOKHWTGV6ExOFN6j1BjfCd0BeePFbFpVZVpLseOTx9ZTPkDGNqd/H+80CIK cB307Ysx3nNVg== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3825D61D8F for ; Fri, 22 Dec 2023 17:40:49 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="f4+NBk/u"; 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 06A99250; Fri, 22 Dec 2023 17:39:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1703263197; bh=OkmObDWuXU2g79DyzgacGXxG1XsadK5Q7h3xpEvCZq0=; h=From:To:Cc:Subject:Date:From; b=f4+NBk/uKRZ2poYsFrjFoB7wNq6JcUbFQqJkmvTtybwDU5moGCUghiAesXvyWyBj5 kvZ3U0QZVGJgHy10MwXgrGOK+lt//BxRMufy5kmJD5A/OAuG5JwLc/tT5wpmEkag6+ RdujxaFKsvPIdeDJ25RIDq1dl7MMlNZYqDl06Itw= To: libcamera-devel@lists.libcamera.org Date: Fri, 22 Dec 2023 17:40:31 +0100 Message-ID: <20231222164036.649245-1-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/5] apps: lc-compliance: Add controls and properties test 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" Add a test case to validate that mandatory properties and controls are registered by a Camera. Before adding a new test, 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. Finally, add a test for controls and properties. The series is based on "[PATCH 0/2] libcamera: Add support for required controls" on which the test depends. Thanks j Jacopo Mondi (3): apps: lc-compliance: Fix typo in comment apps: lc-compliance: Re-organize source directory apps: lc-compliance: Test for mandatory controls 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/controls_test.cpp | 98 +++++++++++++++++++ .../capture.cpp} | 46 +++++---- .../{simple_capture.h => helpers/capture.h} | 14 +-- src/apps/lc-compliance/meson.build | 11 ++- .../{ => tests}/capture_test.cpp | 9 +- 5 files changed, 145 insertions(+), 33 deletions(-) create mode 100644 src/apps/lc-compliance/controls_test.cpp rename src/apps/lc-compliance/{simple_capture.cpp => helpers/capture.cpp} (77%) rename src/apps/lc-compliance/{simple_capture.h => helpers/capture.h} (76%) rename src/apps/lc-compliance/{ => tests}/capture_test.cpp (95%) --- 2.41.0