v4: Use tester frameworks from ELL library ********** v3: Fixed copyright style in mesh-io-unit.h ********** v2: Fixed errors reported by bluez-bot. Regarding the warnings for the "__attribute__((packed))": keeping this style to be consistent with the rest of BLueZ codebase ********** This patch set introduces a framework for non-interactive testing of mesh daemon functionality and consists of the three components: 1. A version of src/shared/tester that uses ELL primitives: everything mesh-related uses ELL. 2. New type of mesh IO used only for testing. 3. The mesh-cfgtest tool that excercises a number of mesh D-Bus API calls. Currently, the tool covers limited number of initial test cases. The extended coverage will be provided after this patch set is accepted. Brian Gix (1): mesh: Add unit test IO Inga Stotland (1): tools/mesh-cfgtest: Non-iteractive test for mesh Makefile.am | 14 +- Makefile.mesh | 2 + Makefile.tools | 6 + mesh/main.c | 51 +- mesh/mesh-io-unit.c | 533 +++++++++++++++ mesh/mesh-io-unit.h | 11 + mesh/mesh-io.c | 9 +- mesh/mesh-io.h | 3 +- tools/mesh-cfgtest.c | 1458 ++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 2065 insertions(+), 22 deletions(-) create mode 100644 mesh/mesh-io-unit.c create mode 100644 mesh/mesh-io-unit.h create mode 100644 tools/mesh-cfgtest.c -- 2.26.2