Stream: git-wasmtime

Topic: wasmtime / Issue #1919 wasmtime-wiggle: add small integra...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 25 2020 at 16:40):

pchickey opened Issue #1919:

Feature

The wasmtime-wiggle crate is tested via its use in wasmtime-wasi. It does not have any tests local to the crate. We should add them.

Benefit

wasi is a very complicated interface & implementation that could make it hard to track down whether a bug is in wiggle, wasmtime-wiggle, or wasi-common. Having a integration test would help us narrow that down. It would also serve as documentation on how to use the crate.

Implementation

The wiggle crate's test suite has a number of witx files and implementations. We could add tests that show those integrated end-to-end with wasmtime to the wasmtime-wiggle crate.

We would probably have to write the WebAssembly code that exercises these apis by hand (.wat). That is less than ideal, but I believe we should avoid adding the complication of a Rust or C wasm toolchain to the testing story.

Alternatives

Yolo?


Last updated: Nov 22 2024 at 16:03 UTC