From 1e3f30a1c6a875ed091f594f5dff3545f8c97a9f Mon Sep 17 00:00:00 2001 From: John Bland Date: Wed, 17 May 2023 10:23:38 -0400 Subject: [PATCH] add github action for encryption with delta updates --- .../workflows/test-powerfail-simulator.yml | 44 ++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-powerfail-simulator.yml b/.github/workflows/test-powerfail-simulator.yml index 61f9ea4c..7c5633d7 100644 --- a/.github/workflows/test-powerfail-simulator.yml +++ b/.github/workflows/test-powerfail-simulator.yml @@ -179,7 +179,49 @@ jobs: run: | make clean && make test-sim-external-flash-with-enc-update - - name: Run update-revert test with power failures (DELTA) + - name: Run update-revert test with power failures (AES128) + run: | + tools/scripts/sim-update-powerfail-resume.sh + + # TEST with encryption (aes128) and delta updates + + - name: make clean + run: | + make keysclean && make -C tools/keytools clean && rm -f include/target.h + + - name: Select config with encrypted updates + run: | + cp config/examples/sim-encrypt-delta-update.config .config + + - name: Build key tools + run: | + make -C tools/keytools + + - name: Build bin assemble + run: | + make -C tools/bin-assemble + + - name: Build wolfboot.elf + run: | + make test-sim-external-flash-with-enc-delta-update + + - name: Run sunny day update test (AES128 DELTA) + run: | + tools/scripts/sim-sunnyday-update.sh + + - name: Rebuild wolfboot.elf + run: | + make clean && make test-sim-external-flash-with-enc-delta-update + + - name: Run update-revert test (AES128 DELTA) + run: | + tools/scripts/sim-update-fallback.sh + + - name: Rebuild wolfboot.elf + run: | + make clean && make test-sim-external-flash-with-enc-delta-update + + - name: Run update-revert test with power failures (AES128 DELTA) run: | tools/scripts/sim-update-powerfail-resume.sh