mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-02-27 02:51:27 +01:00
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 <mkorpershoek@kernel.org> Tested-by: Mattijs Korpershoek <mkorpershoek@kernel.org> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright (c) 2013 Google, Inc
|
|
# Copyright 2022-2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
|
|
|
|
obj-$(CONFIG_$(PHASE_)CMDLINE) += command.o
|
|
ifdef CONFIG_HUSH_PARSER
|
|
obj-$(CONFIG_CONSOLE_RECORD) += test_echo.o
|
|
endif
|
|
ifdef CONFIG_CONSOLE_RECORD
|
|
obj-$(CONFIG_CMD_PAUSE) += test_pause.o
|
|
endif
|
|
obj-$(CONFIG_HUSH_PARSER) += exit.o
|
|
obj-$(CONFIG_X86) += cpuid.o msr.o
|
|
obj-$(CONFIG_CMD_ADDRMAP) += addrmap.o
|
|
ifdef CONFIG_CONSOLE_RECORD
|
|
obj-$(CONFIG_CMD_ACPI) += acpi.o
|
|
endif
|
|
obj-$(CONFIG_CMD_BDI) += bdinfo.o
|
|
obj-$(CONFIG_COREBOOT_SYSINFO) += coreboot.o
|
|
obj-$(CONFIG_CMD_FDT) += fdt.o
|
|
obj-$(CONFIG_CMD_HASH) += hash.o
|
|
obj-$(CONFIG_CMD_HISTORY) += history.o
|
|
obj-$(CONFIG_CMD_I3C) += i3c.o
|
|
obj-$(CONFIG_CMD_LOADM) += loadm.o
|
|
obj-$(CONFIG_CMD_MEMINFO) += meminfo.o
|
|
obj-$(CONFIG_CMD_MEMORY) += mem_copy.o
|
|
obj-$(CONFIG_CMD_MEM_SEARCH) += mem_search.o
|
|
ifdef CONFIG_CMD_PCI
|
|
obj-$(CONFIG_CMD_PCI_MPS) += pci_mps.o
|
|
endif
|
|
obj-$(CONFIG_CMD_QFW) += qfw.o
|
|
obj-$(CONFIG_CMD_SEAMA) += seama.o
|
|
ifdef CONFIG_SANDBOX
|
|
obj-$(CONFIG_CONSOLE_TRUETYPE) += font.o
|
|
obj-$(CONFIG_CMD_MBR) += mbr.o
|
|
obj-$(CONFIG_CMD_PINMUX) += pinmux.o
|
|
obj-$(CONFIG_CMD_PWM) += pwm.o
|
|
obj-$(CONFIG_CMD_READ) += rw.o
|
|
obj-$(CONFIG_CMD_SETEXPR) += setexpr.o
|
|
obj-$(CONFIG_CMD_TEMPERATURE) += temperature.o
|
|
ifdef CONFIG_NET
|
|
obj-$(CONFIG_CMD_WGET) += wget.o
|
|
endif
|
|
obj-$(CONFIG_ARM_FFA_TRANSPORT) += armffa.o
|
|
endif
|
|
obj-$(CONFIG_CMD_SPAWN) += spawn.o
|
|
ifdef CONFIG_CMD_ZIP
|
|
obj-$(CONFIG_CMD_UNZIP) += unzip.o
|
|
endif
|