From 04df8cd3876f6244431cd46fac583099de03158a Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Mon, 30 Jan 2023 09:26:06 +0100 Subject: [PATCH] tests/periph_flashpage_unittest: enable periph_flashpage Testing the correct calculation of flash page indices without assuming the `periph_flashpage` feature and enabling the `periph_flashpage` module makes no sense. On ESP32x SoCs for example, the space in the flash is only reserved and `FLASHPAGE_NUMOF` is greater than 0 if `periph_flashpage` is used. --- tests/periph_flashpage_unittest/Makefile | 3 +++ tests/periph_flashpage_unittest/app.config.test | 1 + 2 files changed, 4 insertions(+) diff --git a/tests/periph_flashpage_unittest/Makefile b/tests/periph_flashpage_unittest/Makefile index 0e97686659..cf1c74c85c 100644 --- a/tests/periph_flashpage_unittest/Makefile +++ b/tests/periph_flashpage_unittest/Makefile @@ -1,6 +1,9 @@ include ../Makefile.tests_common +FEATURES_REQUIRED += periph_flashpage + USEMODULE += embunit +USEMODULE += periph_flashpage # avoid running Kconfig by default SHOULD_RUN_KCONFIG ?= diff --git a/tests/periph_flashpage_unittest/app.config.test b/tests/periph_flashpage_unittest/app.config.test index 98a2df0531..2196b64e79 100644 --- a/tests/periph_flashpage_unittest/app.config.test +++ b/tests/periph_flashpage_unittest/app.config.test @@ -1,3 +1,4 @@ # this file enables modules defined in Kconfig. Do not use this file for # application configuration. This is only needed during migration. CONFIG_MODULE_EMBUNIT=y +CONFIG_MODULE_PERIPH_FLASHPAGE=y