[libcamera-devel] [PATCH v8 0/4] IPA isolation: Part 3: Tests and documentation

Paul Elder paul.elder at ideasonboard.com
Sat Feb 13 05:23:08 CET 2021


v8 is split in three parts, core components, conversion + plumbing, and
tests + documentation.

This is part 3, and adds tests and documentation for IPA isolation.

1/4 tests the IPADataSerializer and 2/4 tests the IPCUnixSocket, both
in the same manner as how the generated IPA proxies would use them.

3/4 adds a guide about writing IPAs.

4/4 tests the generated serializer. v7 adds a test to test
(de)serialization of a vector of *generated* structs.


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

-- 
2.27.0





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                  | 500 ++++++++++++++++++
 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                |   3 +
 10 files changed, 1356 insertions(+), 1 deletion(-)
 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

-- 
2.27.0



More information about the libcamera-devel mailing list