Skip to content

Commit 32446f3

Browse files
committed
Up to right m33mu version
1 parent b8e241f commit 32446f3

1 file changed

Lines changed: 24 additions & 8 deletions

File tree

.github/workflows/trustzone-emulator-tests.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
trustzone-emulator-tests:
99
runs-on: ubuntu-latest
1010
container:
11-
image: ghcr.io/danielinux/m33mu-ci:1.5
11+
image: ghcr.io/danielinux/m33mu-ci:1.8
1212
steps:
1313
- uses: actions/checkout@v4
1414

@@ -31,14 +31,11 @@ jobs:
3131
run: |
3232
set -euo pipefail
3333
34-
make clean distclean
35-
cp config/examples/stm32h5-tz.config .config
36-
make PKCS11_TESTAPP=1
37-
34+
build_log=/tmp/m33mu-pkcs11-build.log
3835
first_log=/tmp/m33mu-pkcs11-first.log
3936
second_log=/tmp/m33mu-pkcs11-second.log
4037
persist_dir=/tmp/m33mu-pkcs11-persist
41-
rm -f "$first_log" "$second_log"
38+
rm -f "$build_log" "$first_log" "$second_log"
4239
rm -rf "$persist_dir"
4340
mkdir -p "$persist_dir"
4441
@@ -50,13 +47,29 @@ jobs:
5047
fi
5148
}
5249
50+
make clean distclean >"$build_log" 2>&1 || {
51+
dump_log "$build_log"
52+
exit 1
53+
}
54+
cp config/examples/stm32h5-tz.config .config >>"$build_log" 2>&1 || {
55+
dump_log "$build_log"
56+
exit 1
57+
}
58+
make PKCS11_TESTAPP=1 >>"$build_log" 2>&1 || {
59+
dump_log "$build_log"
60+
exit 1
61+
}
62+
5363
(
5464
cd "$persist_dir"
5565
m33mu "$GITHUB_WORKSPACE/wolfboot.bin" \
5666
"$GITHUB_WORKSPACE/test-app/image_v1_signed.bin:0x60000" \
5767
--persist --uart-stdout --timeout 120 --expect-bkpt 0x7d \
5868
>"$first_log" 2>&1
59-
)
69+
) || {
70+
dump_log "$first_log"
71+
exit 1
72+
}
6073
6174
grep -q "pkcs11: first boot path, creating persistent objects" "$first_log" && \
6275
grep -q "pkcs11: created persistent PKCS11 objects" "$first_log" && \
@@ -73,7 +86,10 @@ jobs:
7386
"$GITHUB_WORKSPACE/test-app/image_v1_signed.bin:0x60000" \
7487
--persist --uart-stdout --timeout 120 --expect-bkpt 0x7f \
7588
>"$second_log" 2>&1
76-
)
89+
) || {
90+
dump_log "$second_log"
91+
exit 1
92+
}
7793
7894
grep -q "pkcs11: second boot path, restoring persistent objects" "$second_log" && \
7995
grep -q "pkcs11: restored persistent PKCS11 objects" "$second_log" && \

0 commit comments

Comments
 (0)