wolfBoot/tools/unit-tests
Daniele Lacamera 8b73250324 Set trailer on BOOT partition when storing the enc key 2024-07-17 17:00:11 +02:00
..
Makefile Added unit test NVM + ENCRYPTION, fix offset 2024-07-17 13:42:28 +02:00
README.md
target.h Added new unit tests for NVM_FLASH_WRITEONCE 2024-07-16 16:06:54 +02:00
unit-common.c Update license GPL2 -> GPL3 2024-04-16 16:46:15 +02:00
unit-enc-nvm.c Set trailer on BOOT partition when storing the enc key 2024-07-17 17:00:11 +02:00
unit-extflash.c Update license GPL2 -> GPL3 2024-04-16 16:46:15 +02:00
unit-image.c Update license GPL2 -> GPL3 2024-04-16 16:46:15 +02:00
unit-keystore.c Update license GPL2 -> GPL3 2024-04-16 16:46:15 +02:00
unit-mock-state.c Update license GPL2 -> GPL3 2024-04-16 16:46:15 +02:00
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 Update license GPL2 -> GPL3 2024-04-16 16:46:15 +02:00
unit-sectorflags.c Update license GPL2 -> GPL3 2024-04-16 16:46:15 +02:00

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