diff options
| author | Martin Schwan <[email protected]> | 2026-02-18 14:35:07 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-03-06 12:09:17 -0600 |
| commit | 36add050eea439f0b2a15e4ea0d3a8e21216f159 (patch) | |
| tree | 28fef3ed892a88ce361cdc037432a758de27a72a /arch | |
| parent | fe6484b402759dba6024cf2f8c212b27f769a0d7 (diff) | |
test: boot: Add test for bootmeth_rauc
Add a simple unit test for testing the RAUC bootmethod. Provide only the
very basic tests for now, running a scan and list, to verify correct
detection of the RAUC bootmethod. More advanced boot tests of this
bootmethod can be added in a separate patch.
This requires another mmc image (mmc10) to contain the following
partitions:
1. boot A: contains a dummy boot.scr
2. root A: contains an empty root filesystem
3. boot B: contains a dummy boot.scr
4. root B: contains an empty root filesystem
The bootmeth_rauc scans all four partitions for existence and expects a
boot script in each boot partition.
Also add BOOTMETH_RAUC as a dependency on sandbox so that we can test
this with:
$ ./test/py/test.py -B sandbox --build -k test_ut # build the mmc10.img
$ ./test/py/test.py -B sandbox --build -k bootflow_rauc
Signed-off-by: Martin Schwan <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
[trini: mmc9 is now in use, switch to mmc10]
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/sandbox/dts/test.dts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 762c1d9bbe2..ac92ebf1afd 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -46,6 +46,8 @@ mmc6 = "/mmc6"; mmc7 = "/mmc7"; mmc8 = "/mmc8"; + mmc9 = "/mmc9"; + mmc10 = "/mmc10"; pci0 = &pci0; pci1 = &pci1; pci2 = &pci2; @@ -1279,6 +1281,13 @@ filename = "mmc9.img"; }; + /* This is used for RAUC boot tests */ + mmc10 { + status = "disabled"; + compatible = "sandbox,mmc"; + filename = "mmc10.img"; + }; + pch { compatible = "sandbox,pch"; }; |
