From patchwork Tue Mar 2 09:33:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 11429 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 9F6E0BD808 for ; Tue, 2 Mar 2021 09:33:30 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0696268A91; Tue, 2 Mar 2021 10:33:30 +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="BxMXRi9A"; 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 D43BB60106 for ; Tue, 2 Mar 2021 10:33:28 +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 6087845D; Tue, 2 Mar 2021 10:33:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1614677608; bh=91hPl+DINQ2SdN6ywbn1ZGcEs5IzbjwfO3dmJzNFBtQ=; h=From:To:Cc:Subject:Date:From; b=BxMXRi9ArP4IlsXKu3TXENzgvRt/UVSD09MQTlzerKb/AThKpKZBMlHDg7titHu0R OfH/XJ5qc11Hb3Ig1yvsqNbrnoZ7sTB13W2XY3NdZJdsVKlA+QKuvffa4mHTwSmHKx 29SMcbELlBdI9GmyQac7jepZQBmAvC36msH4MMo0= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Tue, 2 Mar 2021 18:33:15 +0900 Message-Id: <20210302093318.437308-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v10 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 v10: - fix file location of test.mojom for the generated serializer test - some more style fixes 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