-
Notifications
You must be signed in to change notification settings - Fork 24
Added wolfboot integration test to intercept regressions #170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
LinuxJedi
merged 4 commits into
wolfSSL:master
from
danielinux:wolfboot-integration-test
Mar 25, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
394865d
Added wolfboot integration test to intercept regressions
danielinux 7f33cb3
Update m33mu-ci to wolfboot-ci-m33mu
danielinux 26e0682
Update wolfboot-ci-m33mu to v.1.1 (fixes in TZ)
danielinux 8d55fd3
Update to wolfboot-ci-m33mu:v.1.2 (forced m33mu rebuild)
danielinux File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| name: WolfPKCS11 wolfBoot emulator tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ 'master', 'main', 'release/**' ] | ||
| pull_request: | ||
| branches: [ '*' ] | ||
|
|
||
| env: | ||
| WOLFBOOT_REPO: https://github.com/wolfSSL/wolfBoot.git | ||
| WOLFBOOT_BRANCH: master | ||
danielinux marked this conversation as resolved.
Show resolved
Hide resolved
danielinux marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| jobs: | ||
| stm32h5_pkcs11_persist: | ||
| name: stm32h5-pkcs11-persist | ||
danielinux marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: ghcr.io/wolfssl/wolfboot-ci-m33mu:v1.2 | ||
| timeout-minutes: 15 | ||
|
|
||
| steps: | ||
| - name: Checkout wolfPKCS11 | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Clone wolfBoot and link tested wolfPKCS11 | ||
| run: | | ||
| set -euxo pipefail | ||
|
|
||
| git config --global --add safe.directory "${GITHUB_WORKSPACE}" | ||
| git clone --depth 1 --branch "${WOLFBOOT_BRANCH}" "${WOLFBOOT_REPO}" wolfboot | ||
danielinux marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| git -C wolfboot config --global --add safe.directory "${GITHUB_WORKSPACE}/wolfboot" | ||
| git -C wolfboot submodule update --init --recursive | ||
| rm -rf wolfboot/lib/wolfPKCS11 | ||
| ln -s "${GITHUB_WORKSPACE}" wolfboot/lib/wolfPKCS11 | ||
| test -L wolfboot/lib/wolfPKCS11 | ||
| test "$(realpath wolfboot/lib/wolfPKCS11)" = "${GITHUB_WORKSPACE}" | ||
|
|
||
| - name: Clean build tree for PKCS11 test (stm32h5) | ||
| working-directory: wolfboot | ||
| run: | | ||
| make clean distclean | ||
|
|
||
| - name: Configure PKCS11 test (stm32h5) | ||
| working-directory: wolfboot | ||
| run: | | ||
| cp config/examples/stm32h5-tz.config .config | ||
|
|
||
| - name: Build persistent PKCS11 test app (stm32h5) | ||
| working-directory: wolfboot | ||
| run: | | ||
| make PKCS11_TESTAPP=1 | ||
|
|
||
| - name: Prepare PKCS11 persistence directory | ||
| run: | | ||
| rm -rf /tmp/m33mu-pkcs11-persist | ||
| mkdir -p /tmp/m33mu-pkcs11-persist | ||
| rm -f /tmp/m33mu-pkcs11-first.log /tmp/m33mu-pkcs11-second.log | ||
danielinux marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: Run PKCS11 first boot (stm32h5) | ||
| run: | | ||
| cd /tmp/m33mu-pkcs11-persist | ||
| m33mu "${GITHUB_WORKSPACE}/wolfboot/wolfboot.bin" \ | ||
| "${GITHUB_WORKSPACE}/wolfboot/test-app/image_v1_signed.bin:0x60000" \ | ||
| --persist --uart-stdout --timeout 120 --expect-bkpt 0x7d \ | ||
| | tee /tmp/m33mu-pkcs11-first.log | ||
|
|
||
| - name: Verify PKCS11 first boot (stm32h5) | ||
| run: | | ||
| grep -q "pkcs11: first boot path, creating persistent objects" /tmp/m33mu-pkcs11-first.log | ||
| grep -q "pkcs11: created persistent PKCS11 objects" /tmp/m33mu-pkcs11-first.log | ||
| grep -q "pkcs11: success" /tmp/m33mu-pkcs11-first.log | ||
| grep -q "\\[BKPT\\] imm=0x7d" /tmp/m33mu-pkcs11-first.log | ||
| grep -q "\\[EXPECT BKPT\\] Success" /tmp/m33mu-pkcs11-first.log | ||
danielinux marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: Run PKCS11 second boot (stm32h5) | ||
| run: | | ||
| cd /tmp/m33mu-pkcs11-persist | ||
| m33mu "${GITHUB_WORKSPACE}/wolfboot/wolfboot.bin" \ | ||
| "${GITHUB_WORKSPACE}/wolfboot/test-app/image_v1_signed.bin:0x60000" \ | ||
| --persist --uart-stdout --timeout 120 --expect-bkpt 0x7f \ | ||
| | tee /tmp/m33mu-pkcs11-second.log | ||
|
|
||
| - name: Verify PKCS11 second boot (stm32h5) | ||
| run: | | ||
| grep -q "pkcs11: second boot path, restoring persistent objects" /tmp/m33mu-pkcs11-second.log | ||
| grep -q "pkcs11: restored persistent PKCS11 objects" /tmp/m33mu-pkcs11-second.log | ||
| grep -q "pkcs11: success" /tmp/m33mu-pkcs11-second.log | ||
| grep -q "\\[BKPT\\] imm=0x7f" /tmp/m33mu-pkcs11-second.log | ||
| grep -q "\\[EXPECT BKPT\\] Success" /tmp/m33mu-pkcs11-second.log | ||
danielinux marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.