Skip to contentSkip to conversation

unit: Add Mesh Crypto tests from Mesh Profile Spec

PATCH Superseded Brian Gix 1 participant 1 message Oct 3, 2019

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Brian Gix

author
#0 lore raw

PATCH 1/1 unit: Add Mesh Crypto tests from Mesh Profile Spec

This unit test will be grown over time to include tests formed from the sample data in the Bluetooth Mesh Profile specification (Currently at version v1.0.1).

Currently it includes test cases for the following nset of sample data:
Sections 8.1.1-6
Sections 8.2.1-6
Sections 8.3.1-11
Section 8.4.3
Section 8.6.2

---
 Makefile.am             |   10 +
 unit/test-mesh-crypto.c | 1998 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 2008 insertions(+)
 create mode 100644 unit/test-mesh-crypto.c
Makefile.am +10 -0
index 938cfd9c0..2ac28b23d 100644
@@ -123,6 +123,7 @@ ell_headers = ell/util.h \
 			ell/main.h \
 			ell/strv.h \
 			ell/string.h \
+			ell/utf8.h \
 			ell/dbus.h \
 			ell/dbus-service.h \
 			ell/dbus-client.h
@@ -142,6 +143,7 @@ ell_sources = ell/private.h ell/missing.h \
 			ell/string.c \
 			ell/cipher.c \
 			ell/checksum.c \
+			ell/utf8.c \
 			ell/dbus-private.h \
 			ell/dbus.c \
 			ell/dbus-message.c \
@@ -518,6 +520,14 @@ unit_test_midi_LDADD = src/libshared-glib.la \
 			$(GLIB_LIBS) $(ALSA_LIBS)
 endif
 
+unit_tests += unit/test-mesh-crypto
+unit_test_mesh_crypto_CPPFLAGS = $(ell_cflags)
+unit_test_mesh_crypto_SOURCES = unit/test-mesh-crypto.c \
+				mesh/crypto.h ell/internal ell/ell.h \
+				$(ell_sources)
+unit_test_mesh_crypto_LDADD = src/libshared-ell.la \
+			$(ell_ldadd)
+
 if MAINTAINER_MODE
 noinst_PROGRAMS += $(unit_tests)
 endif
unit/test-mesh-crypto.c new file +1998 -0

1,998 lines not on this page · raw message

Signature · 1 line
2.21.0