memtester:Two new bit-width test items

Because it may cause unaligned access problems with some hardware, these
two tests are not turned on by default, and are enabled or disabled
through Kconfig.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
This commit is contained in:
chenrun1 2023-08-17 12:21:47 +08:00 committed by Xiang Xiao
parent de3746e2ba
commit 56045e8e3d
2 changed files with 11 additions and 0 deletions

View File

@ -32,4 +32,11 @@ config UTILS_MEMTESTER_PRIORITY
int "Task PRIORITY"
default 100
config UTILS_MEMTESTER_NARROW
bool "TEST_NARROW"
default n
---help---
Turn on the "test_8bit_wide_random test_16bit_wide_random" tests, which
may result in unaligned access on some platforms.
endif

View File

@ -26,6 +26,10 @@ CSRCS += memtester/output.c
MAINSRC = memtester/memtester.c
ifeq ($(CONFIG_UTILS_MEMTESTER_NARROW),y)
CFLAGS += -DTEST_NARROW_WRITES
endif
ifeq ($(wildcard memtester/.git),)
VERSION ?= master
memtester.zip: