Skip to content

Conversation

@mtjhrc
Copy link
Collaborator

@mtjhrc mtjhrc commented Nov 26, 2025

This PR adds many test for TSI. For unix domain sockets we need to root to be "/", so this implements basic support for running tests with namespaces (in the Rust code directly without external helpers).

@mtjhrc mtjhrc force-pushed the test-fix-tsi branch 6 times, most recently from f0dd725 to a3326ea Compare November 27, 2025 15:34
This allows you to run only a specific test e.g.
`make test TEST=tsi-udp`
If TEST is not specified all test will be run.

Signed-off-by: Matej Hrica <[email protected]>
Instead of creating a tmp dir with random suffix for each test, create a tmp dir
with the suffix for the whole run of the test. This allows the user to more
easily view results of a run under a single directory.

This also adds a --base-dir flag for overriding the test directory, and
--keep-all which doesn't delete any of the files generated by the test.

Signed-off-by: Matej Hrica <[email protected]>
We need to bind to the correct socket types (IPv6, Unix) instead of only IPv4.
This fixes UDP and unix dgram tests hanging when waiting for reply.

Signed-off-by: Matej Hrica <[email protected]>
Signed-off-by: Matej Hrica <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant