1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 14:03:55 +01:00
19215: tests/periph_flashpage_unittest: enable periph_flashpage r=benpicco a=gschorcht

### Contribution description

This PR enables the `periph_flashpage` module for  the unittest in `tests/periph_flashpage_unittest` so that it requires feature `periph_flashpage` and expects only correct calculation of flashpage indices if it is used.

Testing the correct calculation of flashpage 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.

The PR fixes the unittest problem for ESP32x SoCs.

### Testing procedure

Green CI with label `CI: run test`.

### Issues/PRs references


Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
This commit is contained in:
bors[bot] 2023-01-31 17:49:08 +00:00 committed by GitHub
commit 207dd5d3dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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 ?=

View File

@ -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