On 2026-10-29T16:23:07+11:00, Frieder Schrempf <[email protected]> wrote: > test: boot: Test the RAUC built-in boot command > > Set CONFIG_BOOTMETH_RAUC_BOOTCMD on sandbox to run a test variable, > and add a test that boots the RAUC bootflow on mmc10 with it. It checks > that the command sees the slot's partitions and raucargs, that slot B > is booted once slot A has no tries left, and that a failing command > uses up a try. > > Booting saves the environment, which sandbox keeps nowhere by default. > Set CONFIG_ENV_FAT_DEVICE_AND_PART to the first partition of mmc10, > which has a FAT filesystem, and select it during the test. No other > test uses the FAT environment. > > The test is skipped unless the command is the one it sets up. As with > the partition name test, this needs an #ifdef, since the string option > does not exist without BOOTMETH_RAUC. > > Assisted-by: LLM > Signed-off-by: Frieder Schrempf <[email protected]> > > configs/sandbox_defconfig | 2 ++ > test/boot/bootflow.c | 78 > +++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 80 insertions(+)
Reviewed-by: Simon Glass <[email protected]>
