Skip to content

Commit a9ba39b

Browse files
committed
Added more tests
1 parent bfe9e4f commit a9ba39b

3 files changed

Lines changed: 103 additions & 1 deletion

File tree

.github/workflows/test-powerfail-simulator.yml

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,61 @@ jobs:
433433
run: |
434434
make clean && make test-sim-internal-flash-with-update
435435
436-
- name: Run sunny day update test (AES128 DELTA)
436+
- name: Run sunny day update test
437+
run: |
438+
tools/scripts/sim-sunnyday-update.sh
439+
440+
- name: Rebuild wolfboot.elf
441+
run: |
442+
make clean && make test-sim-internal-flash-with-update
443+
444+
- name: Run update test with DISABLE_BACKUP and powefail
445+
run: |
446+
tools/scripts/sim-update-powerfail-resume-nobackup.sh
447+
# TEST with backup disabled + NVM_WRITEONCE
448+
- name: make clean
449+
run: |
450+
make distclean
451+
- name: Select config with backup disabled + NVM WRITEONCE
452+
run: |
453+
cp config/examples/sim-nobackup-nvm-writeonce.config .config
454+
455+
- name: Build tools
456+
run: |
457+
make -C tools/keytools && make -C tools/bin-assemble
458+
459+
- name: Build wolfboot.elf
460+
run: |
461+
make clean && make test-sim-internal-flash-with-update
462+
463+
- name: Run sunny day update test
464+
run: |
465+
tools/scripts/sim-sunnyday-update.sh
466+
467+
- name: Rebuild wolfboot.elf
468+
run: |
469+
make clean && make test-sim-internal-flash-with-update
470+
471+
- name: Run update test with DISABLE_BACKUP and powefail
472+
run: |
473+
tools/scripts/sim-update-powerfail-resume-nobackup.sh
474+
# TEST with backup disabled + FLAGS_HOME
475+
- name: make clean
476+
run: |
477+
make distclean
478+
- name: Select config with backup disabled + FLAGS_HOME
479+
run: |
480+
cp config/examples/sim-nobackup-flags-home.config .config
481+
482+
- name: Build tools
483+
run: |
484+
make -C tools/keytools && make -C tools/bin-assemble
485+
486+
- name: Build wolfboot.elf
487+
run: |
488+
make clean && make test-sim-internal-flash-with-update
489+
490+
- name: Run sunny day update test
437491
run: |
438492
tools/scripts/sim-sunnyday-update.sh
439493
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ARCH=sim
2+
TARGET=sim
3+
SIGN?=ED25519
4+
HASH?=SHA256
5+
WOLFBOOT_SMALL_STACK?=1
6+
SPI_FLASH=0
7+
DEBUG=1
8+
SPMATH?=0
9+
DISABLE_BACKUP=1
10+
FLAGS_HOME=1
11+
12+
# sizes should be multiple of system page size
13+
WOLFBOOT_PARTITION_SIZE=0x40000
14+
WOLFBOOT_SECTOR_SIZE=0x1000
15+
WOLFBOOT_PARTITION_BOOT_ADDRESS=0x80000
16+
# if on external flash, it should be multiple of system page size
17+
WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x100000
18+
WOLFBOOT_PARTITION_SWAP_ADDRESS=0x180000
19+
20+
# required for keytools
21+
WOLFBOOT_FIXED_PARTITIONS=1
22+
23+
# For debugging XMALLOC/XFREE
24+
#CFLAGS_EXTRA+=-DWOLFBOOT_DEBUG_MALLOC
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ARCH=sim
2+
TARGET=sim
3+
SIGN?=ED25519
4+
HASH?=SHA256
5+
WOLFBOOT_SMALL_STACK?=1
6+
SPI_FLASH=0
7+
DEBUG=1
8+
SPMATH?=0
9+
DISABLE_BACKUP=1
10+
NVM_WRITEONCE=1
11+
12+
# sizes should be multiple of system page size
13+
WOLFBOOT_PARTITION_SIZE=0x40000
14+
WOLFBOOT_SECTOR_SIZE=0x1000
15+
WOLFBOOT_PARTITION_BOOT_ADDRESS=0x80000
16+
# if on external flash, it should be multiple of system page size
17+
WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x100000
18+
WOLFBOOT_PARTITION_SWAP_ADDRESS=0x180000
19+
20+
# required for keytools
21+
WOLFBOOT_FIXED_PARTITIONS=1
22+
23+
# For debugging XMALLOC/XFREE
24+
#CFLAGS_EXTRA+=-DWOLFBOOT_DEBUG_MALLOC

0 commit comments

Comments
 (0)