Skip to content

Enhance testing of nondeterministic host functionality with component composition #766

@alexcrichton

Description

@alexcrichton

In #764 I added a test for getaddrinfo, but given the flaky nature of DNS servers the test doesn't actually assert either success or failure. With components, however, what we could do is instead build a component which provides the associated WASI interface and make that part of the test. That way we'd still test libc but we wouldn't actually test any live DNS servers.

In general this is a pretty good way to expand the scope of testing in wasi-libc. This would enable testing precise behaviors of certain APIs and certain behaviors, which might be ever-yet-more-relevant with WASIp3 and async thrown into the mix.

This is a pretty large refactoring of the test suite, however, so I'm not bundling this as part of #764, but wanted to track this nonetheless as an idea of expanding the scope of testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions