Skip to content

test: spl: Cover zstd and gzip FIT decompression

Cole Munz u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2test: spl: Cover FIT image decompression with zstdinclude/test/spl.h test/image/spl_load.c test/image/spl_load_nor.c+405 -100 replies
2/2test: spl: Cover FIT image decompression with gzipconfigs/sandbox_spl_defconfig include/test/spl.h test/image/spl_load.c +1 more+374 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] test: spl: Cover zstd and gzip FIT decompression

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(-)
Signature · 1 line
2.55.0