wolfBoot/tools/unit-tests
Mattia Moffa 1ec402ea18 Unit tests: check hal_flash_protect actually gets called
F#3539
2026-05-06 19:03:12 +02:00
..
Makefile Peer review fixes (copilot) 2026-05-05 10:16:16 +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 Add GPT single-sector partition test 2026-04-29 12:24:41 +02:00
unit-enc-nvm.c
…
unit-extflash.c
…
unit-fdt.c
…
unit-fit-gzip.c Peer review fixes (copilot) 2026-05-05 10:16:16 +02:00
unit-fwtpm-stub.c
…
unit-gzip.c Peer review fixes (copilot) 2026-05-05 10:16:16 +02:00
unit-image.c review feedback 2026-05-05 16:37:54 +02:00
unit-keygen-xmss-params.c Fix XMSS keygen param fallback 2026-04-29 12:30:23 +02:00
unit-keystore.c
…
unit-loader-tpm-init.c
…
unit-max-space.c
…
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
…
unit-policy-sign.c
…
unit-psa_store.c
…
unit-qspi-flash.c
…
unit-rot-auth.c
…
unit-sdhci-disk-unaligned.c
…
unit-sdhci-response-bits.c
…
unit-sectorflags.c Add sector flag unit coverage 2026-04-29 12:26:55 +02:00
unit-sign-encrypted-output.c
…
unit-sign-encrypted-output.mkfrag
…
unit-spi-flash.c
…
unit-store-sbrk.c
…
unit-string.c
…
unit-tpm-api-names.c
…
unit-tpm-blob.c
…
unit-tpm-check-rot-auth.c
…
unit-tpm-rsa-exp.c
…
unit-uart-flash.c Addressed copilot's comments 2026-04-29 13:15:52 +02:00
unit-update-disk.c Unit tests: check hal_flash_protect actually gets called 2026-05-06 19:03:12 +02:00
unit-update-flash.c Unit tests: check hal_flash_protect actually gets called 2026-05-06 19:03:12 +02:00
unit-update-ram-nofixed.c Unit tests: check hal_flash_protect actually gets called 2026-05-06 19:03:12 +02:00
unit-update-ram.c Unit tests: check hal_flash_protect actually gets called 2026-05-06 19:03:12 +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