component-model icon indicating copy to clipboard operation
component-model copied to clipboard

Upstream Wasmtime's async test suite

Open yoshuawuyts opened this issue 2 months ago • 0 comments

This issue is a sibling of https://github.com/WebAssembly/wasi-testsuite/issues/181. Wasmtime currently has its own set of component model async tests written in Rust. With an eye on portability, we should upstream these tests from Wasmtime into the component model repo. I've ported a first test in https://github.com/WebAssembly/component-model/pull/569, but we should make it a goal to eventually port all tests. If done right, runtimes like Jco would eventually be able to drop their dependence on Wasmtime's test suite for the component model, and instead be able to directly test against the component model repo. Thanks!

Tasks

These are all the component model async test programs in Wasmtime, grouped by scenario. There are a current total of 65 tests. Each test refers to a specific test case, which itself may be composed of one or more test programs interacting with one another. When translating that to WAST, it should result in a single .wast file which captures both the scenario and test programs.

backpressure

borrowing

error_context

post_return

read_resource_stream

round_trip

round_trip_direct

round_trip_many

streams

transmit

unit_stream

yield

yoshuawuyts avatar Oct 21 '25 13:10 yoshuawuyts