From patchwork Tue Aug 17 12:26:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13374 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 2273CBD87D for ; Tue, 17 Aug 2021 12:26:58 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 748A768894; Tue, 17 Aug 2021 14:26:57 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="pCBW1ylY"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0F8476025C for ; Tue, 17 Aug 2021 14:26:56 +0200 (CEST) Received: from perceval.ideasonboard.com (unknown [103.238.109.15]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D45A12C5; Tue, 17 Aug 2021 14:26:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1629203215; bh=noA3NVsxiF/9KM4ov4AFN6oYYI1r6DPV9fHJw/GccZU=; h=From:To:Cc:Subject:Date:From; b=pCBW1ylYw2azjO4C/w/bii6RwmXayOD4rZzcWuln6R6y2J+C4gvEJ4K+YK5uDtxKy kbQDAG7/qeTyexv6uETeugyaVYZNmE1r3/4eFthgaySkjHSrm43U0t2nnm0ftnTmwt Js2XBtLoby0Zrllhk5F2PoNh71yfIcvEpg4KDPAw= From: Umang Jain To: libcamera-devel@lists.libcamera.org Date: Tue, 17 Aug 2021 17:56:44 +0530 Message-Id: <20210817122646.185978-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] Fd leak 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" There is prior RFC version of this. Almost all of the issues are addressed in this v1. The first commit allows CameraTest to set the LIBCAMERA_IPA_FORCE_ISOLATION env variable. This is necessary since the test in 2/2 needs to run IPA in isolated mode. The test tests two things: - Camera reconfigurations re-runs without stopping CameraManager - Fd leak across IPA IPA boundary. Currently the test fails but a fix is already posted to the list: "ipa: Use FileDescriptor instead of int in layers above IPC payload" Umang Jain (2): libtest: camera_test: Plumb constructor to set LIBCAMERA_IPA_FORCE_ISOLATION test: camera: Camera reconfiguration and fd-leak test test/camera/camera_reconfigure.cpp | 257 +++++++++++++++++++++++++++++ test/camera/meson.build | 1 + test/libtest/camera_test.cpp | 5 +- test/libtest/camera_test.h | 2 +- 4 files changed, 263 insertions(+), 2 deletions(-) create mode 100644 test/camera/camera_reconfigure.cpp