wolfBoot/tools/unit-tests
Mattia Moffa 640d017610 Check key len for truncation; add unit test 2026-07-30 15:38:11 +02:00
..
mcxa_fsl_stub F-5963: fix over-advance of address/len in unaligned hal_flash_write (kinetis.c, mcxa.c, mcxw.c) 2026-07-02 14:47:38 +02:00
Makefile Check key len for truncation; add unit test 2026-07-30 15:38:11 +02:00
README.md
…
arm_cmse.h
…
gpt-sfdisk-test.h
…
target.h
…
txt_filler.h
…
unit-ahci-unlock-panic.c F-6129: zeroize disk-unlock secret before the state-mismatch panic in sata_unlock_disk 2026-07-02 14:18:03 +02:00
unit-arm-tee-psa-ipc.c
…
unit-ata-security-passphrase-zeroize.c F-5968: zeroize disk-unlock passphrase from static ATA command buffer 2026-07-02 14:27:04 +02:00
unit-boot-x86_fsp.c
…
unit-common.c
…
unit-delta.c F-5965: skip wb_diff match candidates whose offset MSB collides with ESC 2026-07-02 14:35:07 +02:00
unit-diagnostics.c Diagnostics: move to next sector when last record is broken 2026-07-02 17:53:12 +02:00
unit-disk.c
…
unit-elf-bss-guard.c
…
unit-enc-nvm.c Fix hwswap fallback CI regressions 2026-07-02 18:57:55 +02:00
unit-extflash.c
…
unit-fdt.c fdt: break loop compatibles when no NUL-terminator is found 2026-07-02 09:23:18 +02:00
unit-fit-fpga.c
…
unit-fit-gzip.c 6593 - Bound uncompressed FIT subimage copy by staging buffer size 2026-07-14 17:44:26 +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-u3.c
…
unit-flash-erase-wb.c
…
unit-flash-write-mcxa.c hal: advance source index in aligned flash-write fast path 2026-07-02 17:01:08 +02:00
unit-flash-write-same51.c F-5964: fix stale in-word offset in hal_flash_write byte-wise path (samr21/same51) 2026-07-02 15:57:54 +02:00
unit-flash-write-samr21.c F-5964: fix stale in-word offset in hal_flash_write byte-wise path (samr21/same51) 2026-07-02 15:57:54 +02:00
unit-fwtpm-nv-oob.c
…
unit-fwtpm-stub.c
…
unit-gzip.c
…
unit-image-elf-scatter.c F-6126: add mutation-pinning test coverage for wolfBoot_check_flash_image_elf 2026-07-02 15:46:24 +02:00
unit-image.c F-6405: pin partition-fit accept boundary in wolfBoot_open_image_address/open_self_address 2026-07-02 16:05:38 +02:00
unit-imx-rt-cache-align.c F-6399: fix imx_rt DCACHE invalidation to include down-alignment offset 2026-07-02 15:13:28 +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 Add unit tests 2026-07-02 17:53:12 +02:00
unit-mock-state.c
…
unit-mpusize.c
…
unit-multiboot.c
…
unit-nvm.c Address PR #815 review comments 2026-07-02 19:20:34 +02:00
unit-otp-keystore-gen-zeroize.c F-6408: zeroize UDS from OTP keystore generator's heap and stack buffers 2026-07-02 14:56:48 +02:00
unit-otp-keystore.c
…
unit-parser.c
…
unit-pci.c 6561 - Restore upper 64-bit BAR register on pci_program_bar error paths 2026-07-14 17:44:26 +02:00
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_store.c
…
unit-policy-create.c
…
unit-policy-sign.c
…
unit-psa_store.c F-6407: zeroize static cached_sector after each flash commit in psa_store 2026-07-02 14:03:24 +02:00
unit-qspi-flash.c F-6131: enforce full-transfer bounds check in spi_flash_read/spi_flash_write (QSPI) 2026-07-02 16:17:51 +02:00
unit-rot-auth.c
…
unit-sdhci-disk-unaligned.c
…
unit-sdhci-response-bits.c
…
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 F-6127: fix custom-TLV 8-byte value saturation in arg2num 2026-07-02 15:28:09 +02:00
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-cert-inv-off.py
…
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 F-6402: add negative tests pinning wolfBoot_check_rot digest comparison 2026-07-02 14:10:44 +02:00
unit-uart-flash.c
…
unit-update-disk-oob.c
…
unit-update-disk.c F-6130: clear disk_encrypt_key/nonce before panic paths that skip the final cleanup 2026-07-02 15:23:43 +02:00
unit-update-flash-hwswap.c Fix hwswap fallback CI regressions 2026-07-02 18:57:55 +02:00
unit-update-flash.c
…
unit-update-ram-enc.c
…
unit-update-ram-nofixed.c
…
unit-update-ram-noramboot.c
…
unit-update-ram-uboot.c update_ram: relocate uImage payload to ih_load under RAMBOOT 2026-07-30 15:36:51 +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
…
unit-wolfhsm_flash_hal.c
…
unit-x86-paging-oob.c
…
unit-xspi-tfd-index.c 6588 - Index LS1028A XSPI TX FIFO by word instead of by byte 2026-07-21 19:33:40 +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