wolfBoot/tools/unit-tests
David Garske a5c94502d4
Merge pull request #868 from danielinux/fenrir-fixes-2026-08-21
Fenrir fixes 2026 08 21
2026-08-24 13:34:37 -04:00
..
cc26x2_ti_stub tests: cover cc26x2 flash error propagation 2026-08-17 15:59:35 +02:00
mcxa_fsl_stub
…
Makefile Merge pull request #868 from danielinux/fenrir-fixes-2026-08-21 2026-08-24 13:34:37 -04:00
README.md
…
arm_cmse.h F-7389: arm_tee: reject Secure .base in zero-length PSA iovecs 2026-08-04 07:02:53 +02:00
gpt-sfdisk-test.h
…
target.h
…
txt_filler.h
…
unit-ahci-unlock-panic.c
…
unit-arm-tee-psa-ipc.c F-7389: arm_tee: reject Secure .base in zero-length PSA iovecs 2026-08-04 07:02:53 +02:00
unit-ata-security-passphrase-zeroize.c
…
unit-aurix-erased-fill.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-boot-x86_fsp.c
…
unit-cm4-rauc-slot.c Fixes from skoll review findings 2026-08-24 12:47:34 +02:00
unit-cm4-sdhci.c cm4: add wolfCrypt FIPS 140-3 support + CI, SDHCI unit test, review fixes 2026-08-24 12:47:34 +02:00
unit-common.c
…
unit-delta.c
…
unit-diagnostics.c
…
unit-dice-token-size.c Add wolfCOSE DICE attestation 2026-08-06 09:44:52 +02:00
unit-disk.c
…
unit-efi-x86-open-image.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-elf-bss-guard.c
…
unit-enc-nvm.c
…
unit-extflash.c add unaligned fallback-IV RMW test for ext_flash_encrypt_write 2026-08-21 09:03:18 +02:00
unit-fdt.c F-9757: length-bound the FIT name/compression string properties 2026-08-21 08:52:59 +02:00
unit-fit-fpga.c
…
unit-fit-gzip.c F-9757: length-bound the FIT name/compression string properties 2026-08-21 08:52:59 +02:00
unit-flash-erase-c0.c
…
unit-flash-erase-g0.c
…
unit-flash-erase-h7.c
…
unit-flash-erase-l0.c
…
unit-flash-erase-mcxw.c mcxw: extend the erase length when rounding the start down 2026-08-12 13:21:08 +02:00
unit-flash-erase-u3.c
…
unit-flash-erase-wb.c
…
unit-flash-write-cc26x2.c Remove tracker ids from code, condense comments 2026-08-18 19:48:12 +02:00
unit-flash-write-mcxa.c
…
unit-flash-write-nrf52.c nrf52/nrf5340/stm32l0: fix the 32-bit fast path in hal_flash_write 2026-08-12 13:20:56 +02:00
unit-flash-write-same51.c
…
unit-flash-write-samr21.c
…
unit-fwtpm-nv-oob.c
…
unit-fwtpm-stub.c
…
unit-gzip.c
…
unit-image-elf-scatter.c bound the ELF paddr range check by the destination pointer width 2026-08-21 08:57:46 +02:00
unit-image.c Authenticate raw device tree via signed HDR_DEVICE_TREE_DIGEST TLV (Fenrir #7998) 2026-08-13 08:39:22 +02:00
unit-imx-rt-cache-align.c
…
unit-keygen-xmss-params.c
…
unit-keystore.c
…
unit-linux-loader-e820.c
…
unit-linux-loader-syssize.c
…
unit-loader-tpm-init.c
…
unit-ls1028a-xspi-write.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-max-space.c
…
unit-mock-flash.c libwolfboot: propagate the head-block write failure 2026-08-12 13:20:56 +02:00
unit-mock-state.c
…
unit-mpusize.c
…
unit-multiboot.c
…
unit-nvm-cache-scrub.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-nvm.c
…
unit-otp-keystore-gen-zeroize.c
…
unit-otp-keystore.c
…
unit-p1021-fcm-bytes.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-p1021-qe-firmware.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-parser-large-header.c F-6762: compare the TLV field budget in a 32-bit domain 2026-08-21 08:52:59 +02:00
unit-parser.c
…
unit-pci.c
…
unit-pic32-pfswap.c 6560 - Clear PFSWAP bit in pic32_fcw_pfswap_set read-modify-write 2026-07-21 19:33:40 +02:00
unit-pkcs11-nsc-zeroize.c F-6875: pkcs11: zeroize NSC bounce buffers before freeing them 2026-08-04 08:26:17 +02:00
unit-pkcs11_store.c
…
unit-policy-create.c
…
unit-policy-sign.c
…
unit-psa_store.c
…
unit-qspi-flash.c F-7382: clip QSPI page program transfers at the device page boundary 2026-08-11 12:54:36 +02:00
unit-rot-auth.c
…
unit-sama5d3-ext-read.c bad-blocks: keep skipping cumulative 2026-08-24 12:38:47 +02:00
unit-sdhci-disk-unaligned.c Peer review fixes (thanks Jack) 2026-08-24 12:47:34 +02:00
unit-sdhci-dma-error.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-sdhci-response-bits.c
…
unit-sdhci-uhs-recover.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-sdhci-wait-busy.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-sectorflags.c
…
unit-sign-custom-tlv-large.py fix bad max value in test print 2026-07-22 16:26:58 -06:00
unit-sign-custom-tlv-le.py
…
unit-sign-custom-tlv-pubkey-der.py Check key len for truncation; add unit test 2026-07-30 15:38:11 +02:00
unit-sign-delta-basehash-cleanup.py F-8006: return errors from delta base-hash validation in sign tool 2026-08-11 09:13:31 +02:00
unit-sign-delta-cert-inv-off.py
…
unit-sign-delta-tlv.py
…
unit-sign-dts.py Authenticate raw device tree via signed HDR_DEVICE_TREE_DIGEST TLV (Fenrir #7998) 2026-08-13 08:39:22 +02:00
unit-sign-encrypted-output.c
…
unit-sign-encrypted-output.mkfrag
…
unit-sign-header-failure.c F-7053: sign: propagate make_header() failure to the exit status 2026-08-04 08:16:53 +02:00
unit-sign-hybrid-keyload.c F-8003: separate decoded key objects for hybrid signers 2026-08-11 09:25:54 +02:00
unit-spi-flash.c
…
unit-stm32l5-write.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-stm32u5-write.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-store-sbrk.c
…
unit-string.c
…
unit-t10xx-dts-memac.c F-9758: validate FDT layout in fdt_check_header, use it in fdt_get_string 2026-08-21 08:52:59 +02:00
unit-t10xx-qe-firmware.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-t2080-fman-loader.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-ti-hercules-write.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-tpm-advio-zeroize.c F-8007: wipe TPM advanced-IO staging buffers in TPM2_IoCb() 2026-08-11 12:23:09 +02:00
unit-tpm-api-names.c
…
unit-tpm-blob.c
…
unit-tpm-check-rot-auth.c
…
unit-tpm-mfgid-eh-zeroize.c F-7069: clear the EH authValue from the stack in wolfBoot_tpm2_get_timestamp 2026-08-11 12:59:01 +02:00
unit-tpm-nsc-cert.c F-7065: tpm: snapshot NS length in wolfBoot_tpm2_read_cert veneer 2026-08-04 08:07:18 +02:00
unit-tpm-rsa-exp.c
…
unit-uart-flash.c
…
unit-ubootenv.c Peer review fixes (thanks Daniele) 2026-08-24 12:47:34 +02:00
unit-update-disk-fit.c F-7066: bound the FIT DTS relocation copy to the staging size 2026-08-21 08:52:59 +02:00
unit-update-disk-oob.c
…
unit-update-disk.c update_disk: use wc_ForceZero() in the DISK_ENCRYPT helpers 2026-08-11 13:59:06 +02:00
unit-update-flash-hwswap.c
…
unit-update-flash.c F-9751: Add positive E2E encrypted-update test, fix what it exposes 2026-08-21 08:52:59 +02:00
unit-update-ram-enc.c
…
unit-update-ram-nofixed.c
…
unit-update-ram-noramboot.c
…
unit-update-ram-uboot.c F-7985: enter legacy uImage at ih_ep when it differs from ih_load 2026-08-11 12:16:39 +02:00
unit-update-ram.c zynqmp: wolfBoot ZynqMP FSBL with signed FIT Linux boot and EL3 security (eFuse/PUF/AES-CSU) 2026-07-22 11:56:40 +02:00
unit-va416x0-fram.c F-7051: return the hal_status_t unmodified from FRAM_Erase 2026-08-18 03:32:21 +02:00
unit-versal-ext-write.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-versal-qspi-dma.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-wolfhsm_flash_hal.c
…
unit-x86-paging-oob.c
…
unit-xspi-tfd-index.c
…
unit-zynq-erase-loop.c Condense the verbose comments 2026-08-18 20:12:06 +02:00
unit-zynq-ext-write.c Condense the verbose comments 2026-08-18 20:12:06 +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