gnrc_tcp: refactor tests#16461
gnrc_tcp: refactor tests#16461miri64 merged 1 commit intoRIOT-OS:masterfrom brummer-simon:gnrc_tcp-refactor_tests
Conversation
|
feel free to rebase Does this only move code around? |
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 nativeand 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