Hi guys, not sure if this is the right group but Oli recommended that I ask a question on the compiler channel. Does anyone know how to manually run the ui tests against a wasm target build? This is the only documentation I have been able to find about it: https://rust-lang.github.io/rustc-guide/tests/intro.html?#testing-on-emulators.
I am asking because some new unit tests I added are breaking the tests that run against this target on azure. The tests break because I am using async and I was using compiler flags instead of setting the edition:2018 in the test. At least I believe that this is the issue but I cannot confirm it until I can run those tests manually.
(I renamed your topic)
Thanks! This relates to this PR: https://github.com/rust-lang/rust/pull/66321
you might be able to just pass the right
--target flag to
./x.py test --stage 1 src/test/ui
I know building std for both the host and the wasm target is really easy (as I've had to do it a bunch recently) so I'm hoping this also works
@David Haig I was going to say "this works" for
./x.py test --stage 1 src/test/ui --target wasm32-unknown-unknown but I'm getting a lot of F's oops
curious what it will be, maybe I'm just missing a runtime dependency?
[ERROR compiletest::runtest] fatal error, panic: "no NodeJS binary found (--nodejs)"
@David Haig yeah so make sure you have node.js installed and then run the command above
@eddyb Ok I'll give that a go, cheers!