[PATCH 3/3] test: cmd: Add test for zip/unzip/gzwrite commands
Mattijs Korpershoek
mkorpershoek at kernel.org
Thu Jan 29 17:26:14 CET 2026
Hi Marek,
Thank you for the patch.
On Wed, Jan 28, 2026 at 00:57, Marek Vasut <marek.vasut+renesas at mailbox.org> wrote:
> Add simple test for zip/unzip/gzwrite commands. The test works as
> follows. First, create three buffers with a bit of space between
> each of them, fill them with random data, then compress data in
> buffer 1 into buffer 2, decompress data in buffer 2 either directly
> into buffer 3 or into MMC 1 and then read them back into buffer 3,
> and finally compare buffer 1 and buffer 3, they have to be identical.
>
> The buffers are filled with random data to detect out of bounds writes.
> Test for various sizes, both small and large and unaligned.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
I've tested this with
$ ./test/py/test.py --bd sandbox --build -k ut
Followed by:
$ ./test/py/test.py --bd sandbox --build -k cmd_zip
And I see:
FAILED test/py/tests/test_ut.py::test_ut[ut_dm_dm_test_cmd_zip_gzwrite] - ValueError: U-Boot exited with signal 11 (SIGSEGV)
FAILED test/py/tests/test_ut.py::test_ut[ut_dm_dm_test_cmd_zip_unzip] - ValueError: U-Boot exited with signal 11 (SIGSEGV)
The full logs are available here:
https://paste.debian.net/hidden/704e0be8
(note that the version is reported as dirty because I added a small to
diff to fix the compile issue I reported in [1])
[1] https://lore.kernel.org/all/87wm10mm0g.fsf@kernel.org/
> ---
> Cc: Alexander Graf <agraf at csgraf.de>
> Cc: Heinrich Schuchardt <xypron.glpk at gmx.de>
> Cc: Ilias Apalodimas <ilias.apalodimas at linaro.org>
> Cc: Jerome Forissier <jerome at forissier.org>
> Cc: Mattijs Korpershoek <mkorpershoek at kernel.org>
> Cc: Neil Armstrong <neil.armstrong at linaro.org>
> Cc: Peng Fan <peng.fan at nxp.com>
> Cc: Quentin Schulz <quentin.schulz at cherry.de>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: Yuya Hamamachi <yuya.hamamachi.sx at renesas.com>
> Cc: u-boot at lists.denx.de
> ---
More information about the U-Boot
mailing list