Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

tests/periph_flashpage_unittest: enable periph_flashpage #19215

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

gschorcht
Copy link
Contributor

@gschorcht gschorcht commented Jan 30, 2023

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

@github-actions github-actions bot added the Area: tests Area: tests and testing framework label Jan 30, 2023
@gschorcht gschorcht added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: run tests If set, CI server will run tests on hardware for the labeled PR labels Jan 30, 2023
@riot-ci
Copy link

riot-ci commented Jan 30, 2023

Murdock results

✔️ PASSED

04df8cd tests/periph_flashpage_unittest: enable periph_flashpage

Success Failures Total Runtime
13 0 13 01m:25s

Artifacts

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.
@gschorcht gschorcht force-pushed the tests/fix_periph_flashpage_unittest branch from 7ceca89 to 04df8cd Compare January 30, 2023 08:26
@kaspar030
Copy link
Contributor

CI RasPi are down, that test run will stall until fixed :/

Copy link
Contributor

@benpicco benpicco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors merge

@bors
Copy link
Contributor

bors bot commented Jan 31, 2023

Build succeeded:

@bors bors bot merged commit 207dd5d into RIOT-OS:master Jan 31, 2023
@gschorcht gschorcht deleted the tests/fix_periph_flashpage_unittest branch January 31, 2023 21:40
@MrKevinWeiss MrKevinWeiss added this to the Release 2023.04 milestone Apr 25, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: run tests If set, CI server will run tests on hardware for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants