wolfBoot/tools/unit-tests
Daniele Lacamera fb4dd67f6d Make pubkey lookup actually CT by not returning at the match 2026-03-09 19:51:35 +01:00
..
Makefile Fix more build issues in CI 2026-03-09 19:01:25 +01:00
README.md
gpt-sfdisk-test.h
target.h
txt_filler.h
unit-boot-x86_fsp.c Add upper limit for PCI capabilities 2026-03-09 11:31:44 +01:00
unit-common.c
unit-delta.c Fix delta wb_patch double esc corner case 2026-03-09 10:11:55 +01:00
unit-disk.c GPT: verify the header CRC32 checksum stored in the header 2026-03-09 09:58:56 +01:00
unit-enc-nvm.c
unit-extflash.c Fixed regressions in CI tests 2026-03-09 16:43:45 +01:00
unit-image.c Make pubkey lookup actually CT by not returning at the match 2026-03-09 19:51:35 +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
unit-mock-state.c
unit-multiboot.c multiboot.c: add multiboot unit test 2026-03-05 09:43:32 +01:00
unit-nvm.c
unit-parser.c
unit-pci.c
unit-pkcs11_store.c Improved PSA & PKCS11 store write boundary checks 2026-03-09 09:51:08 +01:00
unit-psa_store.c Improved PSA & PKCS11 store write boundary checks 2026-03-09 09:51:08 +01:00
unit-qspi-flash.c QSPI: limit page-write loop to remaining bytes 2026-03-09 11:45:32 +01:00
unit-sectorflags.c
unit-spi-flash.c
unit-string.c Fix string compare functions 2026-03-06 19:25:07 +01:00
unit-tpm-rsa-exp.c Do not rely on alignment when loading RSA exponent 2026-03-09 11:49:14 +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