[riot-notifications] [RIOT-OS/RIOT] GNRC TCP refactor tests (#16461)

Simon Brummer notifications at github.com
Sat May 8 14:50:36 CEST 2021

### 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

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * gnrc_tcp: add listen accept api
  * gnrc_tcp: add listen accept implementation
  * gnrc_tcp: add listen accept tests
  * gnrc_tcp: refactor tests

-- File Changes --

    M sys/include/net/gnrc/tcp.h (99)
    M sys/include/net/gnrc/tcp/tcb.h (15)
    M sys/include/net/tcp.h (4)
    M sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c (516)
    M sys/net/gnrc/transport_layer/tcp/gnrc_tcp_eventloop.c (10)
    M sys/net/gnrc/transport_layer/tcp/gnrc_tcp_fsm.c (48)
    M sys/net/gnrc/transport_layer/tcp/include/gnrc_tcp_common.h (4)
    M tests/gnrc_tcp/README.md (31)
    M tests/gnrc_tcp/main.c (94)
    D tests/gnrc_tcp/tests-as-root/01-conn_lifecycle_as_client.py (50)
    A tests/gnrc_tcp/tests-as-root/01-run.py (457)
    D tests/gnrc_tcp/tests-as-root/02-conn_lifecycle_as_server.py (57)
    D tests/gnrc_tcp/tests-as-root/03-send_data.py (63)
    D tests/gnrc_tcp/tests-as-root/04-receive_data.py (65)
    D tests/gnrc_tcp/tests-as-root/05-garbage-pkts.py (157)
    D tests/gnrc_tcp/tests-as-root/06-receive_data_closed_conn.py (84)
    D tests/gnrc_tcp/tests-as-root/07-endpoint_construction.py (150)
    A tests/gnrc_tcp/tests-as-root/helpers.py (299)
    D tests/gnrc_tcp/tests-as-root/shared_func.py (118)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210508/153aedbf/attachment-0001.htm>

More information about the notifications mailing list