Skip to content

Commit b48561f

Browse files
committed
fixup! Add CI that builds and runs every example against wolfSSL master and stable
1 parent 524de68 commit b48561f

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

.github/examples-manifest.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/uefi.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,19 @@ jobs:
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"

0 commit comments

Comments
 (0)