1
0
mirror of https://passt.top/passt synced 2024-12-24 14:45:22 +00:00
passt/test/pasta
David Gibson 9fc476af6e test: Simpler termination handling for UDP tests
Because UDP is connectionless we don't have an in-built end-of-stream
signal for our connectivity tests.  We work around this by explicitly
adding an end marker to our sample data and killing the listening end once
it is seen.

However, socat has some built-in options - null-eof and shut-null - which
can be used to signal the end of stream with a zero-length UDP packet.
Use these to simplify how the UDP tests are implemented.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2022-09-13 11:14:29 +02:00
..
dhcp test: Group tests by mode then protocol, rather than the reverse 2022-09-13 11:12:41 +02:00
ndp test: Group tests by mode then protocol, rather than the reverse 2022-09-13 11:12:41 +02:00
tcp test: Use paths in __STATEDIR__ instead of 'temp' and 'tempdir' directives 2022-09-13 11:12:41 +02:00
udp test: Simpler termination handling for UDP tests 2022-09-13 11:14:29 +02:00