mirror of https://github.com/wolfSSL/wolfBoot.git
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 |
||
|---|---|---|
| .. | ||
| Makefile | ||
| README.md | ||
| target.h | ||
| unit-common.c | ||
| unit-extflash.c | ||
| unit-image.c | ||
| unit-keystore.c | ||
| unit-mock-state.c | ||
| unit-nvm.c | ||
| unit-parser.c | ||
| 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