diff --git a/testing/memtester/Kconfig b/testing/memtester/Kconfig index 2b093be0e..9a4c17653 100644 --- a/testing/memtester/Kconfig +++ b/testing/memtester/Kconfig @@ -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 diff --git a/testing/memtester/Makefile b/testing/memtester/Makefile index 5f1d5aa60..97cef3bf6 100644 --- a/testing/memtester/Makefile +++ b/testing/memtester/Makefile @@ -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: