These apply on top of Alexey's "spl: fit: Generalize compression support" v2:
https://patch.msgid.link/[email protected]

That series adds the FIT_*_LZMA test pair and enables CONFIG_SPL_ZSTD in
sandbox_spl, but nothing decompresses a zstd or gzip payload through
load_simple_fit() yet. These two patches add the same pair for each.

Each patch builds on its own with sandbox_spl_defconfig. ./spl/u-boot-spl -u
runs 29 tests after the first patch and 31 after the second, no failures.
Replacing the zstd_decompress() call in image_decomp() with ret = 0 fails the
two zstd tests and nothing else, and doing the same to gunzip() fails the two
gzip tests. With CONFIG_SPL_ZSTD and CONFIG_SPL_GZIP switched off the LZMA
pair still runs.

Sandbox only, I have no Rockchip hardware.

Alexey, fold these into v3 if that is easier for you. Otherwise I will resend
once the series lands.

Cole Munz (2):
  test: spl: Cover FIT image decompression with zstd
  test: spl: Cover FIT image decompression with gzip

 configs/sandbox_spl_defconfig |   1 +
 include/test/spl.h            |  20 +
 test/image/spl_load.c         | 764 +++++++++++++++++++++++++++++++++-
 test/image/spl_load_nor.c     |   4 +
 4 files changed, 779 insertions(+), 10 deletions(-)

-- 
2.55.0


Reply via email to