-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Integrate standard wasm tests #1
Comments
Okay, so the extended wat syntax is annoying but necessary, so there are a few potential solutions to it:
The first seems easier; the magic incantation seems to be |
By "extended syntax" do you mean the bit in the I could probably rig up something similar that just reports test pass/fail based on diffing the expected/actual stdout texts, I'll have a try. |
Oh, actually we can probably just nobble the existing test scripts to work with your code instead. |
That's more or less what I'm doing, or at least was the original plan. The standard test scripts use wabt's wat2wasm with a flag that tells it to assemble the actual modules and dump out a json specification of how to test each module. This specification is easy to load with serde (esp. if you steal parity-wasm's code for them) and then you just need the actual runner code. This is in progress, see |
Ah cool, I think I misunderstood what you meant about the JSON. If there are any boring bits that need done I may have some time over the weekend to contribute something? |
Sure, if you want. Some things that needs doing is just making it actually try to load and run more of the tests in |
Oh and it turns out there's a wabt binding crate, though there's some work that needs doing before it supports wast2json. |
wabt
has tests for the interpreter, here. They're run with the wabt interpreter and use an extended form ofwat
syntax.In fact it appears the better source for this would be the reference interpreter tests, which appear to be in a similar form and might be easier to integrate.
The text was updated successfully, but these errors were encountered: