wolfBoot/tools/unit-tests
Daniele Lacamera c61d516e81 Added copyright notices to unit test files 2024-08-07 17:18:30 +02:00
..
Makefile Added unit tests for delta.c 2024-08-07 16:45:17 +02:00
README.md Fix for building on Mac. Added README.md. 2020-08-13 13:02:59 -07:00
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-delta.c Added copyright notices to unit test files 2024-08-07 17:18:30 +02:00
unit-enc-nvm.c Added copyright notices to unit test files 2024-08-07 17:18:30 +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 copyright notices to unit test files 2024-08-07 17:18:30 +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