wac icon indicating copy to clipboard operation
wac copied to clipboard

Use wast2json instead for generating tests?

Open binji opened this issue 5 years ago • 2 comments

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 avatar Mar 08 '19 20:03 binji

@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.

kanaka avatar Mar 12 '19 19:03 kanaka

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

vshymanskyy avatar Nov 14 '19 00:11 vshymanskyy