File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1192,8 +1192,9 @@ examples:
11921192 path : uefi-library
11931193 tier : cross
11941194 profile : all
1195- mode : build-only
1196- reason : " QEMU + OVMF. NOTE: bare `make` boots QEMU (all: run-fallback-nohw)"
1195+ # uefi.yml boots this under QEMU + OVMF and asserts the wolfCrypt suite says
1196+ # every test passed. run-fallback-nohw is the one target with no accel=kvm,
1197+ # so it runs on a stock runner.
11971198
11981199 # ----------------------------------------------------------------- cross
11991200 - id : esp32-dtls13-client
Original file line number Diff line number Diff line change 8080 [ -n "$f" ] || { echo "FAIL: no .efi produced"; exit 1; }
8181 file "$f"
8282 echo "verified: $f"
83+
84+ # A .efi on disk proves nothing about whether wolfCrypt runs under UEFI.
85+ # run-fallback-nohw is the one QEMU target with no accel=kvm, so it works
86+ # on a runner. The EFI shell never exits, so cap it and judge the serial
87+ # log, not the exit code.
88+ - name : Boot it under QEMU and run the wolfCrypt suite
89+ if : matrix.example == 'uefi-library'
90+ run : |
91+ set -euo pipefail
92+ sudo apt-get install -y --no-install-recommends qemu-system-x86 ovmf >/dev/null
93+ cd uefi-library
94+ timeout 600 make run-fallback-nohw WOLFSSL_PATH=/tmp/wolfssl > boot.log 2>&1 || true
95+ tail -n 40 boot.log
96+ grep -q 'All tests passed!' boot.log \
97+ || { echo "FAIL: the EFI test suite did not report all tests passed"; exit 1; }
98+ echo "verified: wolfCrypt ran under UEFI"
You can’t perform that action at this time.
0 commit comments