wolfBoot/tools/unit-tests
Daniele Lacamera 04111a67b4 Added unit tests for FLAGS_HOME + fix NVM election
Taking into account the additional offset for PART_UPDATE_FLAGS at the
end of each flags sector when comparing two redundant flag sectors in
NVM_FLASH_WRITEONCE + FLAGS_HOME
2024-07-17 11:28:40 +02:00
..
Makefile Added unit tests for FLAGS_HOME + fix NVM election 2024-07-17 11:28:40 +02:00
README.md
…
target.h
…
unit-common.c
…
unit-extflash.c
…
unit-image.c
…
unit-keystore.c
…
unit-mock-state.c
…
unit-nvm.c Added unit tests for FLAGS_HOME + fix NVM election 2024-07-17 11:28:40 +02:00
unit-parser.c Unit tests for memory blob parsers 2024-07-16 17:37:01 +02:00
unit-pci.c
…
unit-sectorflags.c
…

README.md

Unit Test Tools

This uses the "check" unit test framework for C.

You may need to run "apt install check", "yum install check" or "brew install check".

Building

Use make to build.

Expected output

$ ./unit-parser
Running suite(s): wolfBoot
Explicit end of options reached
This field is too large (bigger than the space available in the current header)
This field is too large and would overflow the image header
Illegal address (too high)
Illegal address (too high)
100%: Checks: 2, Failures: 0, Errors: 0