wac
wac copied to clipboard
Use wast2json instead for generating tests?
wabt provides the wast2json
tool to parse the wast files. It then generates a .json
file, and a collection of .wasm
files for each module. This might be simpler than parsing yourself in runtest.py
.
@binji thanks, I wasn't aware of that tool and that's a great idea. Might be a while before I'm able to get around to it but it would definitely improve things.
You can find an example of doing this here: https://github.com/vshymanskyy/wasm3/blob/master/test/run-spec-test.py
@kanaka feel free to adjust it to your needs