wolfBoot/tools/unit-tests
Daniele Lacamera 9bfecfb617 Fix fwTPM unit test CI config 2026-06-10 21:01:16 +02:00
..
Makefile Fix fwTPM unit test CI config 2026-06-10 21:01: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 F-4258: reject GPT partitions whose LBA extent overflows uint64_t 2026-06-10 21:01:16 +02:00
unit-enc-nvm.c
unit-extflash.c
unit-fdt.c F-5747: guard fdt_data_size_ and fdt_splice_string_ against off_dt_strings+size_dt_strings uint32_t overflow 2026-06-10 21:01:16 +02:00
unit-fit-fpga.c
unit-fit-gzip.c
unit-flash-erase-h7.c F-5745: fix off-by-one in hal_flash_erase skipping last page when len%PAGE_SIZE!=0 2026-06-10 21:01:16 +02:00
unit-fwtpm-nv-oob.c F-5092: fix off-by-one in fwtpm_nv_read/write/erase offset guard 2026-06-10 21:01:16 +02:00
unit-fwtpm-stub.c
unit-gzip.c
unit-image.c F-5351: test wolfBoot_open_self_address rejects bad magic with hdr_ok cleared 2026-06-10 21:01:16 +02:00
unit-keygen-xmss-params.c
unit-keystore.c
unit-linux-loader-e820.c
unit-linux-loader-syssize.c
unit-loader-tpm-init.c
unit-max-space.c
unit-mock-flash.c
unit-mock-state.c
unit-mpusize.c
unit-multiboot.c F-4651: bound multiboot2 header_length to prevent OOB tag walk 2026-06-10 21:01:16 +02:00
unit-nvm.c
unit-otp-keystore.c F-4790: clamp OTP pubkey_size in keystore_get_size to prevent OOB read 2026-06-09 15:52:07 +02:00
unit-parser.c
unit-pci.c F-4717: reject PCI BARs whose region overruns the pool to prevent cursor wrap 2026-06-10 21:01:16 +02:00
unit-pkcs11_store.c
unit-policy-create.c
unit-policy-sign.c
unit-psa_store.c F-4782: bound hdr->pos in bitmap_put to prevent OOB write from corrupted vault 2026-06-10 21:01:16 +02:00
unit-qspi-flash.c
unit-rot-auth.c F-4973: clamp TPM-supplied nvPublic.dataSize before NV read-back in rot.c 2026-06-09 15:52:07 +02:00
unit-sdhci-disk-unaligned.c F-4716: reject SDHCI block addresses that overflow 32-bit SD command argument 2026-06-10 21:01:16 +02:00
unit-sdhci-response-bits.c
unit-sectorflags.c
unit-sign-delta-cert-inv-off.py Address Copilot review comments 2026-06-09 15:52:07 +02:00
unit-sign-delta-tlv.py
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
unit-update-disk.c
unit-update-flash.c
unit-update-ram-nofixed.c
unit-update-ram.c
unit-x86-paging-oob.c F-5093: fix OOB memset in x86_paging_setup_ptp and non-looping panic 2026-06-10 21:01:16 +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