From patchwork Mon Mar 1 06:52:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 11409 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 729E2BD808 for ; Mon, 1 Mar 2021 06:52:37 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BAD4468A81; Mon, 1 Mar 2021 07:52:36 +0100 (CET) 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="urHFsccQ"; dkim-atps=neutral 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 4BD3B602EC for ; Mon, 1 Mar 2021 07:52:35 +0100 (CET) Received: from pyrite.rasen.tech (unknown [IPv6:2400:4051:61:600:2c71:1b79:d06d:5032]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B552A332; Mon, 1 Mar 2021 07:52:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1614581554; bh=1yFI46Rt9Johw3PLVZ1yLsKRKRVNQ9XIXeYfQxxz0Ec=; h=From:To:Cc:Subject:Date:From; b=urHFsccQv7hmGnmj8zftOY+Ttb8t8LaFFgORCgOdJBQ4NM7fG/RR6KxL1whbuGaD7 GZoykzd7MspGLoKpmt502I2LagUZdTwhrI0+Mnzi+Y1AMKp16SSw767xmoMK2rhWFy n8aenSgF+WuHEUlGATnH9M6wv0+hDwi0B3BpQT7Q= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Mon, 1 Mar 2021 15:52:23 +0900 Message-Id: <20210301065226.11095-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v9 0/3] IPA isolation 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This used to be part 3 of the IPA isolation series. The documentation has been broken out (v8 waiting for review), and this series only contains tests for IPA isolation. 1/3 tests the IPADataSerializer and 2/3 tests the IPCUnixSocket, both in the same manner as how the generated IPA proxies would use them. 3/3 tests the generated serializer. v7 adds a test to test (de)serialization of a vector of *generated* structs. Changes in v9: - just lots of style fixes in the tests Changes in v8: - (from v7.1) fix bullet points and update wordings in the ipa writer guide Changes in v7: - add test to test serdes of a vector of *generated* structs - remove printing values of vectors/maps - use the new sendSync/sendAsync API - update IPA guide Changes in v6: - no longer need to initialize rpi ControlInfoMap, and no longer necessary it pass it to the ControlList serializer - update documentation about the required namespacing, customizable start(), and that {pipeline_name}.h is no longer required - use namespacing in the mojom file and test Paul Elder (4): tests: Add IPADataSerializer test tests: Add test for IPCPipeUnixSocket Documentation: Add IPA writers guide tests: Test IPA serializer generation Documentation/guides/ipa.rst | 474 ++++++++++++++++++ Documentation/index.rst | 1 + Documentation/meson.build | 1 + test/ipc/meson.build | 3 +- test/ipc/unixsocket_ipc.cpp | 233 +++++++++ .../generated_serializer_test.cpp | 156 ++++++ .../generated_serializer/meson.build | 49 ++ .../generated_serializer/vimc.mojom | 33 ++ .../ipa_data_serializer_test.cpp | 378 ++++++++++++++ test/serialization/meson.build | 5 +- 10 files changed, 1331 insertions(+), 2 deletions(-) create mode 100644 Documentation/guides/ipa.rst create mode 100644 test/ipc/unixsocket_ipc.cpp create mode 100644 test/serialization/generated_serializer/generated_serializer_test.cpp create mode 100644 test/serialization/generated_serializer/meson.build create mode 100644 test/serialization/generated_serializer/vimc.mojom create mode 100644 test/serialization/ipa_data_serializer_test.cpp