-
Notifications
You must be signed in to change notification settings - Fork 2k
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
gnrc_tcp: refactor tests #16461
gnrc_tcp: refactor tests #16461
Conversation
3095bc1
to
0886675
Compare
0886675
to
5b26589
Compare
feel free to rebase Does this only move code around? |
5b26589
to
876c24d
Compare
Mostly. It adds a few python helper classes simplifying the process of writing tests. All existing tests are merged into a single file and these tests are rewritten based on the helper classes. So the tests are moved and partly rewritten with the new helper classes. All in all the tests test the same functionality as before. |
How would you feel about porting the tests to |
Makes sence from my point of view. Although this PR and the two PR building onto of this PR introduce new tests based on the old scheme. I would prefer that we review and merge the open followup PRs and port the tests in a single PR after the successfull sock integration. @miri64 What do you think about this approach? |
Mh... to be honest, I am not sure if it would be less work for you to rework the tests once instead of twice ;-) |
Well the PRs already ready for review including the tests. So the work is already done. Rewriting the test now would mean that I change large pieces of code in PRs that basically require only reviews. |
It's your code, so if you think rewriting twice in this case is less work, now that the first rework is basically done, I don't mind. |
Lets do it this way then :) |
Tests are still passing on native
and same54-xpro
|
Contribution description
This PR refactors the test suite of GNRC_TCP. In consolidates all test scripts in a into a single script
and adds helper classes wrapping common functions used in GNRC_TCP tests.
This PR simplifies the process of adding additional tests greatly.
All existing tests were moved into the new test script.
Testing procedure
To test this PR follow the instructions under tests/gnrc_tcp/Readme.md
Issues/PRs references
Depends on PR #16459