tests: debug: Add in-memory coredump backend test scenario

Providing the right config options and a new test scenario,
coredump_backends test will run under the in-memory backend.

Signed-off-by: Tomasz Bursztyka <tobu@bang-olufsen.dk>
This commit is contained in:
Tomasz Bursztyka 2025-03-27 10:21:11 +01:00 committed by Anas Nashif
commit f17f6af5e6
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,7 @@
CONFIG_ZTEST=y
CONFIG_LOG=y
CONFIG_LOG_MODE_MINIMAL=y
CONFIG_DEBUG_COREDUMP=y
CONFIG_DEBUG_COREDUMP_BACKEND_IN_MEMORY=y
CONFIG_DEBUG_COREDUMP_BACKEND_IN_MEMORY_SIZE=2048
CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y

View file

@ -24,6 +24,11 @@ tests:
- esp32s2_saola - esp32s2_saola
- esp32s3_devkitm/esp32s3/procpu - esp32s3_devkitm/esp32s3/procpu
- esp32c3_devkitm - esp32c3_devkitm
debug.coredump.backends.in_memory:
filter: CONFIG_ARCH_SUPPORTS_COREDUMP
extra_args: CONF_FILE=prj_in_memory.conf
extra_configs:
- CONFIG_TEST_STORED_COREDUMP=y
debug.coredump.backends.other: debug.coredump.backends.other:
filter: CONFIG_ARCH_SUPPORTS_COREDUMP filter: CONFIG_ARCH_SUPPORTS_COREDUMP
extra_args: CONF_FILE=prj_backend_other.conf extra_args: CONF_FILE=prj_backend_other.conf