mesh: Add unit test IO
authorBrian Gix <brian.gix@intel.com>
Fri, 19 Mar 2021 20:38:24 +0000 (13:38 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:35 +0000 (19:08 +0530)
commite19e5833684769d5863860015b27e0641467fce4
tree761920bb39734e2064398e45d2d17bcca462d66b
parent9c90fd66b61a632c8e4806748da1d326db44ed69
mesh: Add unit test IO

This adds a new type of mesh IO that is used for non-interactive testing.
The new io option can be specified on command line as:
--io unit:<socket_name>

When the bluetooth-meshd daemon starts with the "unit" IO type,
the daemon opens a socket (fd to open is provided after "unit:"
in <socket_name>). The communication with the daemon is done either
through the loop-back using mesh DBus-based APIs or the specified
named socket.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
Makefile.mesh
mesh/main.c
mesh/mesh-io-unit.c [new file with mode: 0644]
mesh/mesh-io-unit.h [new file with mode: 0644]
mesh/mesh-io.c
mesh/mesh-io.h