wolfBoot/tools/unit-tests
Daniele Lacamera 1fdb3b36a6 Fixed more copilot findings 2026-03-16 11:11:18 +01:00
..
Makefile fix store sbrk heap bounds handling 2026-03-16 09:32:51 +01:00
README.md
gpt-sfdisk-test.h
target.h
txt_filler.h
unit-boot-x86_fsp.c
unit-common.c
unit-delta.c Addressed copilot's comments 2026-03-16 10:34:41 +01:00
unit-disk.c
unit-enc-nvm.c
unit-extflash.c Fixed regressions in CI tests 2026-03-09 16:43:45 +01:00
unit-image.c key_sha384: zero hash buffer to cover for early error 2026-03-12 09:28:51 +01:00
unit-keystore.c Make pubkey lookup actually CT by not returning at the match 2026-03-09 19:51:35 +01:00
unit-mock-flash.c Propagate hal_flash_write() error when writing partition magic 2026-03-12 09:28:51 +01:00
unit-mock-state.c
unit-multiboot.c
unit-nvm.c Fix broken test: FLAGS_HOME requires boot partition mapping 2026-03-12 09:28:51 +01:00
unit-parser.c
unit-pci.c
unit-pkcs11_store.c fix store delete_object header offset 2026-03-16 09:23:22 +01:00
unit-psa_store.c fix store delete_object header offset 2026-03-16 09:23:22 +01:00
unit-qspi-flash.c
unit-sectorflags.c
unit-spi-flash.c
unit-store-sbrk.c Addressed copilot's comments 2026-03-16 10:34:41 +01:00
unit-string.c strings.c: enforce null-termination on strncpy, optimize strcat 2026-03-12 09:28:51 +01:00
unit-tpm-blob.c Fixed more copilot findings 2026-03-16 11:11:18 +01:00
unit-tpm-rsa-exp.c TPM: RoT comparison made Constant time 2026-03-12 09:28:51 +01:00
unit-update-disk.c Addressed reviewers comments 2026-03-12 11:52:19 +01:00
unit-update-flash.c
unit-update-ram.c

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