summaryrefslogtreecommitdiff
path: root/common/Kconfig
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-02-05 02:40:45 +0100
committerTom Rini <[email protected]>2026-02-18 15:02:58 -0600
commit6be3db6c1ab33c7ad90a8b25d7777e8425bf15cf (patch)
tree2249886776b8015d8da0cabb5859ad9268f13253 /common/Kconfig
parent8a056a105852d2c3912acae16d558c73e73cd2a1 (diff)
test: cmd: Add test for zip/unzip/gzwrite commands
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. The test uses ut_assert_skip_to_line() to skip over gzwrite progress bar. Since the progress bar updates fill up the console record buffer, increase the size of it to compensate. Reviewed-by: Mattijs Korpershoek <[email protected]> Tested-by: Mattijs Korpershoek <[email protected]> Signed-off-by: Marek Vasut <[email protected]>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 47d17f4e7c6..63448bdc13b 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -26,7 +26,7 @@ config CONSOLE_RECORD_INIT_F
config CONSOLE_RECORD_OUT_SIZE
hex "Output buffer size"
depends on CONSOLE_RECORD
- default 0x6000
+ default 0x20000
help
Set the size of the console recording output buffer. When this fills
up, no more data will be recorded until some is removed. The buffer