Skip to content

Commit

Permalink
tests/sys/configuration: drop configuration_backend_flashdb_vfs
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian18 committed Jan 8, 2025
1 parent e76147e commit b7f9ac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
15 changes: 1 addition & 14 deletions tests/sys/configuration/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ TEST_CONFIGURATION_BACKEND ?= configuration_backend_ram

TEST_CONFIGURATION_SUPPORTED_BACKENDS ?= \
configuration_backend_ram \
configuration_backend_flashdb_mtd \
configuration_backend_flashdb_vfs
configuration_backend_flashdb_mtd

ifeq (,$(filter $(TEST_CONFIGURATION_BACKEND),$(TEST_CONFIGURATION_SUPPORTED_BACKENDS)))
$(error "Supported backends are: $(TEST_CONFIGURATION_SUPPORTED_BACKENDS)")
Expand All @@ -24,18 +23,6 @@ ifeq ($(TEST_CONFIGURATION_BACKEND),configuration_backend_ram)
NO_PSEUDOMODULES += configuration_backend_ram
endif

# configuration_backend_flashdb_vfs results in hard faults with little stack size
CFLAGS += -DTHREAD_STACKSIZE_MAIN=2*THREAD_STACKSIZE_LARGE

# for configuration_backend_flashdb_vfs you may need to add:
# CFLAGS+="-DDEBUG_ASSERT_VERBOSE=1
# -DFAL_MTD=MTD_0
# -DVFS_DEFAULT_DATA=VFS_DEFAULT_NVM\(0\)"
# TEST_CONFIGURATION_BACKEND=configuration_backend_flashdb_vfs
# USEMODULE="vfs_aut_format
# configuration_backend_reset_flashdb"
# BOARD=same54-xpro make flash term

USEMODULE += embunit
USEMODULE += configuration
USEMODULE += $(TEST_CONFIGURATION_BACKEND)
Expand Down
3 changes: 1 addition & 2 deletions tests/sys/configuration/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,7 @@ static CONF_PRIMITIVE_HANDLER(_products_orders_items_item_conf_handler,
#ifndef TEST_CONFIGURATION_BACKEND_OPS
#if defined(TEST_CONFIGURATION_BACKEND_RAM)
#define TEST_CONFIGURATION_BACKEND_OPS &conf_backend_ram_ops
#elif defined(TEST_CONFIGURATION_BACKEND_FLASHDB_MTD) || \
defined(TEST_CONFIGURATION_BACKEND_FLASHDB_VFS)
#elif defined(TEST_CONFIGURATION_BACKEND_FLASHDB_MTD)
#define TEST_CONFIGURATION_BACKEND_OPS &conf_backend_flashdb_ops
#else
#define TEST_CONFIGURATION_BACKEND_OPS NULL
Expand Down

0 comments on commit b7f9ac4

Please sign in to comment.