tests/spiffs: Move from unittests to regular test#10210
tests/spiffs: Move from unittests to regular test#10210cladmi merged 1 commit intoRIOT-OS:masterfrom
Conversation
miri64
left a comment
There was a problem hiding this comment.
Tested for native, samr21-xpro, and native. According to Murdock some BOARD_INSUFFIENT_MEMORY needs to be compiled.
tests/unittests/Makefile
Outdated
| z1 \ | ||
| # | ||
| DISABLE_TEST_FOR_MSP430 := tests-relic tests-spiffs tests-cpp_% | ||
| DISABLE_TEST_FOR_MSP430 := tests-relic tests-cpp_% |
There was a problem hiding this comment.
This blacklisting needs to also be moved to tests/pkg_spiffs.
There was a problem hiding this comment.
I tested with IoT-LAB nodes (with the branch rebased on master)
BOARDS="samr21-xpro pba-d-01-kw2x b-l475e-iot01a nrf52dk arduino-zero nrf52840dk iotlab-m3 microbit frdm-kw41z"
for board in ${BOARDS}; do BOARD=${board} RIOT_CI_BUILD=1 IOTLAB_NODE=auto-ssh BUILD_IN_DOCKER=1 DOCKER="sudo docker" make --no-print-directory -C tests/pkg_spiffs clean all flash test || break; done
However for these boards, make test took around 6 seconds only, with the time after reset included, so the 120 looks like not needed. The default 10s could be enough.
Test does not compile for msp430-v1_3b due to not enough memory.
tests/pkg_spiffs/tests/01-run.py
Outdated
| board = os.environ['BOARD'] | ||
| # Increase timeout on "real" hardware | ||
| timeout = 120 if board is not 'native' else -1 | ||
| child.expect('OK \(\d+ tests\)', timeout=timeout) |
There was a problem hiding this comment.
Please also directly inline changing this regex to a raw string.
| child.expect('OK \(\d+ tests\)', timeout=timeout) | |
| child.expect(r'OK \(\d+ tests\)', timeout=timeout) |
cf1174b to
f8a80b1
Compare
cladmi
left a comment
There was a problem hiding this comment.
Test succeeded on IoT-LAB boards arduino-zero iotlab-m3 samr21-xpro b-l475e-iot01a microbit.
It also succeeded on arduino-mega2560 frdm-k64f frdm-kw41z msba2 nrf52dk nucleo-f103rb pba-d-01-kw2x sltb001a stm32f3discovery but currently failed on the mulle.
However mulle was not passing unittests in master either.
https://ci-ilab.imp.fu-berlin.de/job/experimental-pull-request-tests/22/consoleText
Please squash!
Mind if I update the board blacklist/insufficient memory list while squashing? |
|
@bergzand no problem |
2738789 to
eb7d7d6
Compare
|
All green, let's go. No more pkgs in |
|
Thank you! |
Contribution description
another one related to #10187
Testing procedure
Verify that
tests/pkg_spiffsworks:BOARD=<your-favourite> make -C tests/pkg_spiffs flash testIssues/PRs references
#10187