Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[PoC] tests/lwip: port to RIOTCtrl #14874

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

miri64
Copy link
Member

@miri64 miri64 commented Aug 27, 2020

Contribution description

This ports the weird constructs in tests/lwip to our new test framework riotctrl. While I'm quite happy about the current state, I think there are some things that could be done better and more generalized. This is why I marked it as a PoC. I think this test is just perfect to show the current short-comings of riotctrl:

  • Getting an IP address is a bit cumbersome
  • There is no way currently to define a specific board or if the two boards can communicate. The first I circumvented by incrementing the number in the predefined PORT variable (when PORT2 is not defined), the latter by just allowing boards of the same type.

Testing procedure

Run make -C tests/lwip -j flash test. It should succeed. To date, I only tested IPv6 support on native.

Issues/PRs references

None

@miri64 miri64 added Area: network Area: Networking Area: tests Area: tests and testing framework Area: pkg Area: External package ports Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation State: demonstrator State: This PR (loosely) demonstrates a concept and is not necessarily meant to be merged. labels Aug 27, 2020
@miri64 miri64 added this to the Release 2020.10 milestone Aug 27, 2020
@MrKevinWeiss MrKevinWeiss removed this from the Release 2021.07 milestone Jul 15, 2021
@fjmolinas
Copy link
Contributor

There is no way currently to define a specific board or if the two boards can communicate. The first I circumvented by incrementing the number in the predefined PORT variable (when PORT2 is not defined), the latter by just allowing boards of the same type.

What do you mean by a specific BOARD?

@miri64
Copy link
Member Author

miri64 commented Nov 9, 2021

There is no way currently to define a specific board or if the two boards can communicate. The first I circumvented by incrementing the number in the predefined PORT variable (when PORT2 is not defined), the latter by just allowing boards of the same type.

What do you mean by a specific BOARD?

For the two nodes required for the test, BOARD needs to be the same for both nodes.

@fjmolinas
Copy link
Contributor

There is no way currently to define a specific board or if the two boards can communicate. The first I circumvented by incrementing the number in the predefined PORT variable (when PORT2 is not defined), the latter by just allowing boards of the same type.

What do you mean by a specific BOARD?

For the two nodes required for the test, BOARD needs to be the same for both nodes.

Well, automatic tests in tests/ are still meant to be run on only one BOARD, handling multiple BOARDs from a build system point of view is an issue/subject on itself.

@miri64
Copy link
Member Author

miri64 commented Nov 9, 2021

Well, automatic tests in tests/ are still meant to be run on only one BOARD, handling multiple BOARDs from a build system point of view is an issue/subject on itself.

The test is not run in the automatic tests anyway at the moment ;-).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: network Area: Networking Area: pkg Area: External package ports Area: tests Area: tests and testing framework State: demonstrator State: This PR (loosely) demonstrates a concept and is not necessarily meant to be merged. Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants