circuitpython/tests/net_hosted
Damien George 3f1df4bacb tests/net_hosted: Only run network loopback test on supported targets.
Only a few ports have TCP/IP loopback enabled in their network stack, and
this test will only pass on those ports.  There's not really any good way
to do a feature check for loopback mode without actually running the test
and seeing if it passes/fails, so add an explicit check that the test is
running on a port known to support loopback.

(Enabling loopback on lwIP, eg RPI_PICO_W, costs +568 code and +272 bss and
is a rarely used feature, so not worth unconditionally enabling.)

Signed-off-by: Damien George <damien@micropython.org>
2025-05-01 11:16:29 +10:00
..
accept_nonblock.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
accept_nonblock.py.exp tests/net_inet: Move tests which don't require full Internet to net_hosted. 2017-06-23 21:12:32 +03:00
accept_timeout.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
accept_timeout.py.exp tests/net_inet: Move tests which don't require full Internet to net_hosted. 2017-06-23 21:12:32 +03:00
asyncio_loopback.py tests/net_hosted: Only run network loopback test on supported targets. 2025-05-01 11:16:29 +10:00
asyncio_loopback.py.exp tests/net_hosted/asyncio_loopback.py: Add loopback test. 2023-11-17 13:37:43 +11:00
asyncio_start_server.py extmod/asyncio/stream.py: Fix cancellation handling of start_server. 2023-10-02 14:11:52 +11:00
asyncio_start_server.py.exp extmod/asyncio/stream.py: Fix cancellation handling of start_server. 2023-10-02 14:11:52 +11:00
connect_nonblock.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
connect_nonblock.py.exp tests/net_inet: Move tests which don't require full Internet to net_hosted. 2017-06-23 21:12:32 +03:00
connect_nonblock_xfer.py tests/net_hosted: Convert connect-nonblock-xfer test to use unittest. 2024-12-06 13:48:23 +11:00
connect_poll.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
connect_poll.py.exp extmod/modlwip: Unconditionally return POLLHUP when polling new socket. 2019-10-31 12:54:37 +11:00
connect_timeout.py extmod/modlwip: Make socket.connect raise ETIMEDOUT on non-zero timeout. 2024-06-08 09:02:01 +10:00
README all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
ssl_getpeercert.py extmod/modssl_mbedtls: Make SSLSocket.getpeercert() optional. 2023-12-12 21:21:54 +11:00
ssl_getpeercert.py.exp extmod/modussl_mbedtls.c: Add ussl.getpeercert() method. 2017-08-16 15:01:00 +10:00
ssl_verify_callback.py extmod/modtls_mbedtls: Implement cert verification callback for mbedtls. 2024-02-07 13:00:57 +11:00
ssl_verify_callback.py.exp tests/net_hosted/ssl_verify_callback.py: Make exp match actual output. 2024-05-27 13:56:55 +10:00

This directory contains network tests which require just "peer to peer"
network connection between test host and device under test, instead of
full Internet connection.

Note that setup for these tests and tests themselves are WIP, and may
not yet fully correspond to the functional specification above.

So far, these tests are not run as part of the main testsuite and need
to be run separately (from the main test/ directory):

    ./run-tests.py net_hosted/*.py