wolfBoot/tools/unit-tests
Daniele Lacamera 23894d31c6 Adjust mock in unit tests: fixed image_type field 2023-11-17 15:15:18 +01:00
..
Makefile Added more unit tests. Added 'make cov'. 2023-10-13 14:30:45 +02:00
README.md
…
target.h
…
unit-common.c Added more unit tests. Added 'make cov'. 2023-10-13 14:30:45 +02:00
unit-extflash.c
…
unit-image.c Adjust mock in unit tests: fixed image_type field 2023-11-17 15:15:18 +01:00
unit-keystore.c Added more unit tests. Added 'make cov'. 2023-10-13 14:30:45 +02:00
unit-mock-state.c Added more unit tests. Added 'make cov'. 2023-10-13 14:30:45 +02:00
unit-parser.c
…
unit-pci.c Added more unit tests. Added 'make cov'. 2023-10-13 14:30:45 +02:00
unit-sectorflags.c Added more unit tests. Added 'make cov'. 2023-10-13 14:30:45 +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