Closed igrep closed 1 month ago
Sorry I missed filling in that URL!
The test suite is indeed in the test-programs
crate, which produces a large number of binaries: https://github.com/bytecodealliance/wasmtime/tree/main/crates/test-programs/src/bin . There are some preview2_
specific tests in there which consume p2 imports directly, and then there is the much larger set of preview1_
tests which are adapted from p1 to p2 imports using the component adapter: https://github.com/bytecodealliance/wasmtime/tree/main/crates/wasi-preview1-component-adapter. Linking a p1 module with the adapter into a component is implemented by wasm-tools component new
.
Okay, so how about filling some documents of https://github.com/bytecodealliance/wasmtime/tree/main/crates/test-programs before adding the link to it?
According to the README of WASI Preview 2,
But the URL of
[test-suite]
is not specified.I tried to fix by myself, but failed to find the actual URL of "Wasmtime's WASI Preview 2 test suite". There are several candidate directories (below), but both of them don't look so as far as I browsed.