wolfBoot/.github/workflows
Daniele Lacamera 2e918de239 F-9749: propagate the verify result from wolfBoot_start to the exit code
wolfBoot_start() in hal/library.c ended its exit: path with an
unconditional 'return 0;', so a rejected image (bad header, hash or
signature) still made the test-lib process exit 0. main() propagates
wolfBoot_start()'s return value, so the failure was only visible in
the printed "Failure" message, which the test-library workflow had to
grep for (TODO referencing PR #625).

Return ret, which carries the wolfBoot_verify_*() error on every path
that reaches exit: with a failure. The success path never returns:
do_boot() jumps to the firmware.

The test-library workflow drops the status-rewriting workaround and
asserts the non-zero exit code directly, keeping the "Failure"
message check as a diagnostic.

Verification:
- Built: make test-lib (host, library.config, ED25519/SHA256).
- Tested: local repro of the workflow flow: corrupt the last byte of
  a signed image; before the fix the process exited 0 while printing
  "Failure -1", after the fix it exits 255; a valid image still
  exits 0 with "Firmware Valid".
- Pitfalls: 'return ret' only changes the error paths; do_boot() does
  not return on success.
- Style: the cstyle-check.sh FMT flag on hal/library.c is present on
  the pre-change file as well (not introduced here).
- Message: F-9749: prefix, no co-author trailers.
2026-08-25 08:50:43 +02:00
..
build-keytools-windows.yml
dualbank-emulator-tests.yml ci: add stm32u5 dual-bank swap fallback test on m33mu 2026-07-09 15:14:51 +02:00
footprint.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-build-aarch64.yml Peer review fixes (thanks Jack) 2026-08-24 12:47:34 +02:00
test-build-cmake-dot-config.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-build-cmake-mac.yml
test-build-cmake-presets.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-build-cmake-script.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-build-cmake-windows.yml
test-build-cmake.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-build-kontron-vx3060-s2.yml Addressed copilot's comments 2026-04-28 15:22:41 +02:00
test-build-lms.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-build-mcux-sdk-manifests.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-build-mcux-sdk.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-build-msdk.yml Add MAX32666 CI 2026-07-31 14:33:56 +02:00
test-build-pic32cx.yml
test-build-pico-sdk.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-build-powerpc.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-build-psoc6.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-build-renesas-rx.yml ci: build Renesas RX example configs 2026-07-30 15:32:31 +02:00
test-build-riscv.yml PolarFire SoC: LPDDR4 DDR init for MPFS250T Video Kit (M-Mode) 2026-08-03 12:27:22 +02:00
test-build-sim-tpm.yml
test-build-stm32cube.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-build.yml Peer review fixes (thanks Jack) 2026-08-24 12:47:34 +02:00
test-configs.yml imx95_m7: fix console/status overlap, cache handoff, timebase and build wiring 2026-08-24 18:46:41 +02:00
test-cppcheck.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-cryptocb-simulator.yml review feedback 2026-05-05 16:37:54 +02:00
test-custom-tlv-simulator.yml add test coverage for large and file-backed tlvs 2026-07-21 16:33:19 -06:00
test-elf-scattered.yml Add oneshot hash build option 2026-04-17 08:25:51 +02:00
test-external-library-paths.yml Add wolfCOSE DICE attestation 2026-08-06 09:44:52 +02:00
test-filesystem.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-hooks-simulator.yml Fixed regression in sim test, added sim test for denied rollback 2026-04-15 18:26:04 +02:00
test-keytools-msys2.yml
test-keytools.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-library.yml F-9749: propagate the verify result from wolfBoot_start to the exit code 2026-08-25 08:50:43 +02:00
test-parse-tools.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-powerfail-simulator.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-raspi3-encrypted.yml ci: cover the raspi3 encrypted artifact pipeline 2026-08-18 20:04:55 +02:00
test-renode-fastmath-smallstack.yml Proper migration of renode tests 2026-04-28 15:04:35 +02:00
test-renode-fastmath.yml Proper migration of renode tests 2026-04-28 15:04:35 +02:00
test-renode-noasm-smallstack.yml Proper migration of renode tests 2026-04-28 15:04:35 +02:00
test-renode-noasm.yml Proper migration of renode tests 2026-04-28 15:04:35 +02:00
test-renode-nrf52.yml Proper migration of renode tests 2026-04-28 15:04:35 +02:00
test-renode-sha3.yml Proper migration of renode tests 2026-04-28 15:04:35 +02:00
test-renode-sha384.yml Proper migration of renode tests 2026-04-28 15:04:35 +02:00
test-renode-smallstack.yml Proper migration of renode tests 2026-04-28 15:04:35 +02:00
test-sbom.yml sbom: run the wolfGlass drift check on every pull request 2026-08-20 15:22:16 +02:00
test-sim-self-update.yml Add additional test coverage for monolithic self updates with asymmetric partition sizing 2026-08-19 17:47:48 +02:00
test-sunnyday-simulator.yml Add SW-only RSA PSS 2026-04-28 15:02:57 +02:00
test-tpm.yml
test-units.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-vscode.yml Moving trustzone test to, wolfboot-ci-m33mu CI to v1.0 2026-03-24 14:25:18 +01:00
test-wolfhsm-simulator.yml Add support for auxillary algorithms and cert chain/TPM usage 2026-07-22 11:47:16 +02:00
test-x86-fsp-qemu.yml Addressed copilot's comments 2026-04-28 15:22:41 +02:00
trustzone-emulator-tests.yml Add wolfCOSE DICE attestation 2026-08-06 09:44:52 +02:00