libcamera/test
Niklas Söderlund a00fdabacd test: ipc: unix: Add test for IPCUnixSocket
Test that the IPC supports sending data and file descriptors over the
IPC medium. To be able to execute the test two parts are needed, one
to drive the test and act as the libcamera (master) and a one to act as
the IPA (slave).

The master drives the testing posting requests to the slave to process
and sometimes respond to. A few different tests are performed.

- Master sends an array to the slave which responds with a reversed copy
  of the array. The master verifies that a reversed array is returned.

- Master tries to send an empty message making sure that the send call
  fails.

- Master sends a list of file descriptors and ask the slave to calculate
  and respond with the sum of the size of the files. The master verifies
  that the calculated size is correct.

- Master sends a pre-computed size and a list of file descriptors and
  asks the slave to verify that the pre-computed size matches the sum of
  the size of the file descriptors.

- Master sends two file descriptors and asks the slave to join the file
  contents in a new file and respond with its file descriptor. The
  master then verifies that the content of the returned file descriptor
  matches the order of the original two files.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2019-07-02 02:25:59 +03:00
..
camera test: camera: Increase runtime for capture test 2019-06-11 15:56:36 +02:00
ipa libcamera: test: remove test IPA and use dummy IPA instead 2019-06-05 10:44:52 -04:00
ipc test: ipc: unix: Add test for IPCUnixSocket 2019-07-02 02:25:59 +03:00
libtest libcamera: ipa_manager: implement class for managing IPA modules 2019-06-05 10:44:52 -04:00
media_device meson: Create and use a dependency for libcamera and its headers 2019-05-23 13:56:33 +03:00
pipeline meson: Create and use a dependency for libcamera and its headers 2019-05-23 13:56:33 +03:00
stream test: stream: Add test for StreamFormat 2019-06-19 12:25:12 +02:00
v4l2_subdevice libcamera: v4l2_subdevice: Replace FormatEnum with ImageFormats 2019-06-19 03:06:33 +02:00
v4l2_videodevice libcamera: Rename V4L2Device to V4L2VideoDevice 2019-06-19 15:46:44 +02:00
camera-sensor.cpp tests: Add CameraSensor class test 2019-06-12 15:10:38 +03:00
event-dispatcher.cpp tests: event-dispatcher: Add processEvents() interruption test 2019-01-23 18:51:56 +02:00
event.cpp libcamera: Don't ignore the return value of read() and write() 2019-04-29 15:54:40 +03:00
geometry.cpp test: geometry: Add tests for Size class comparison operators 2019-04-18 18:13:10 +03:00
list-cameras.cpp libcamera: camera: Handle camera objects through shared pointers 2019-01-21 11:13:53 +02:00
meson.build test: ipc: unix: Add test for IPCUnixSocket 2019-07-02 02:25:59 +03:00
signal.cpp test: signal: Exercise the signal delivery code paths for Object 2019-04-27 17:50:25 +03:00
timer.cpp test: timer: Add dynamically allocated timer test 2019-07-01 23:48:37 +02:00