examples: add unit testing example

This commit is contained in:
Ivan Grokhotkov
2018-10-25 20:31:35 +08:00
parent a98674d78b
commit a5adfd0169
19 changed files with 423 additions and 0 deletions
@@ -0,0 +1,7 @@
# This is the minimal test component makefile.
#
# The following line is needed to force the linker to include all the object
# files into the application, even if the functions in these object files
# are not referenced from outside (which is usually the case for unit tests).
#
COMPONENT_ADD_LDFLAGS = -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive