wolfBoot/tools/unit-tests
Daniele Lacamera da43c99993 Added more unit tests. Added 'make cov'.
Fixed checks for invalid partition id
2023-10-13 14:30:45 +02:00
..
Makefile Added more unit tests. Added 'make cov'. 2023-10-13 14:30:45 +02:00
README.md Fix for building on Mac. Added README.md. 2020-08-13 13:02:59 -07:00
target.h Added unit test for encrypted external flash 2023-03-14 08:57:14 +01:00
unit-common.c Added more unit tests. Added 'make cov'. 2023-10-13 14:30:45 +02:00
unit-extflash.c For the hal_flash API's make the change to uintptr_t to support 64-bit explicit using `ARCH_64BIT` or known 64-bit architectures. 2023-08-07 20:54:18 +02:00
unit-image.c Added more unit tests. Added 'make cov'. 2023-10-13 14:30:45 +02: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 For the hal_flash API's make the change to uintptr_t to support 64-bit explicit using `ARCH_64BIT` or known 64-bit architectures. 2023-08-07 20:54:18 +02:00
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