-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testsuite now requires installing wasm32-wasi target #595
Comments
This is unintended -- the crate that uses the wasm32-wasi target is |
@sunfishcode I'm excluding wasmtime-py because of #468, and lightbeam because I'm running stable; when I test on nightly I use |
One possible solution I am contemplating is to check in the compiled We'll likely have test programs written in C at some point too, which will need wasi-sdk or similar installed as well, and not everyone will have that either. And hopefully we'll have other languages too. Having a collection of precompiled wasms would make is easy to run all the tests regardless of what the developer has installed. That said, I haven't decided anything yet, and am open to other ideas. |
I personally don't have a problem with needing to install a wasm32-wasi target, but I definitely don't think a C SDK should be required. And in any case, we probably want the test suite to use the same binaries every time rather than depending on what rustc generates. Could we put them in a separate repository instead? |
We've already had this setup before and it proved a nightmare for development. Keeping two repos, which change a lot and often, in sync is a proper nightmare, so I strongly disagree with separating the tests out into a separate repo at this stage. FWIW, after the tests and Until then, is there any reason why we can't have |
This commit feature-gates `test-programs` as a workaround for `cargo test` not allowing for optional dev-dependencies. This commit addresses bytecodealliance#595.
OK, I've now opened #600 which re-introduces feature-gating of the |
This commit feature-gates `test-programs` as a workaround for `cargo test` not allowing for optional dev-dependencies. This commit addresses bytecodealliance#595.
This commit feature-gates `test-programs` as a workaround for `cargo test` not allowing for optional dev-dependencies. This commit addresses bytecodealliance#595.
This commit feature-gates `test-programs` as a workaround for `cargo test` not allowing for optional dev-dependencies. This commit addresses bytecodealliance#595.
This commit feature-gates `test-programs` as a workaround for `cargo test` not allowing for optional dev-dependencies. This commit addresses #595.
Another problem with keeping the tests as binaries was that it was really hard to keep track which version was actually committed and fixing merge conflicts was horrible. We could probably just require the users to have clang installed (we probably even require this nowadays) and have just the WASI sysroot as a submodule. |
Going through some older issues, this is now a requirement of Wasmtime and this is a pretty old issue as well, so closing. |
I ran into some mysterious testsuite failures, and managed to figure out that they occurred because I didn't have the wasm32-wasi target installed for my stable toolchain.
I think this needs documenting somewhere. It's not at all an unreasonable requirement, but since it doesn't occur automatically, we should document the need to install it before running the testsuite.
The text was updated successfully, but these errors were encountered: