wolfBoot/tools/unit-tests
David Garske b5a5b28f19 Fix unit test and new `WOLFBOOT_USE_PCI`. 2024-08-14 18:06:12 +02:00
..
Makefile Fix unit test and new `WOLFBOOT_USE_PCI`. 2024-08-14 18:06:12 +02:00
README.md
target.h Unit test for update_ram.c (#488) 2024-08-13 09:36:33 -07:00
unit-common.c
unit-delta.c Added copyright notices to unit test files 2024-08-07 17:18:30 +02:00
unit-enc-nvm.c Unit test: make flash mocking generic 2024-08-12 11:00:13 +02:00
unit-extflash.c
unit-image.c
unit-keystore.c
unit-mock-flash.c Unit test for update_ram.c (#488) 2024-08-13 09:36:33 -07:00
unit-mock-state.c
unit-nvm.c Unit test: make flash mocking generic 2024-08-12 11:00:13 +02:00
unit-parser.c
unit-pci.c
unit-sectorflags.c
unit-update-flash.c Unit tests for update_flash.c (#487) 2024-08-13 06:25:49 -07:00
unit-update-ram.c Unit test for update_ram.c (#488) 2024-08-13 09:36:33 -07: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