wolfBoot/tools/unit-tests
Daniele Lacamera 47b61ba2eb Add RAM_CODE self-update unit coverage
F/2261
2026-04-08 19:53:50 +02:00
..
Makefile Add RAM_CODE self-update unit coverage 2026-04-08 19:53:50 +02:00
README.md
…
gpt-sfdisk-test.h
…
target.h
…
txt_filler.h
…
unit-boot-x86_fsp.c
…
unit-common.c
…
unit-delta.c
…
unit-disk.c
…
unit-enc-nvm.c Propagate erase encrypt key write failures 2026-04-08 19:50:11 +02:00
unit-extflash.c
…
unit-fdt.c Rebased, addressed comments 2026-03-30 16:30:27 +02:00
unit-image.c Add auth type coverage for unit-image 2026-04-08 19:53:50 +02:00
unit-keystore.c Add restricted key mask authenticity tests 2026-04-08 15:47:47 +02:00
unit-mock-flash.c
…
unit-mock-state.c
…
unit-multiboot.c
…
unit-nvm.c
…
unit-parser.c
…
unit-pci.c
…
unit-pkcs11_store.c
…
unit-policy-create.c Fix policy_create PCR digest validation 2026-04-08 19:51:17 +02:00
unit-policy-sign.c
…
unit-psa_store.c
…
unit-qspi-flash.c
…
unit-rot-auth.c Rebased, addressed comments 2026-03-30 16:30:27 +02:00
unit-sdhci-response-bits.c
…
unit-sectorflags.c
…
unit-sign-encrypted-output.c Check image reopen failures in sign tool 2026-04-08 19:53:50 +02:00
unit-sign-encrypted-output.mkfrag Fix sign encrypted output open failure 2026-04-08 19:53:50 +02:00
unit-spi-flash.c
…
unit-store-sbrk.c
…
unit-string.c
…
unit-tpm-blob.c
…
unit-tpm-check-rot-auth.c Rebased, addressed comments 2026-03-30 16:30:27 +02:00
unit-tpm-rsa-exp.c
…
unit-update-disk.c
…
unit-update-flash.c Add RAM_CODE self-update unit coverage 2026-04-08 19:53:50 +02:00
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