kanaka / wac

WebAssembly interpreter in C
Other
473 stars 46 forks source link

Use wast2json instead for generating tests? #11

Open binji opened 5 years ago

binji commented 5 years ago

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.

kanaka commented 5 years ago

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

vshymanskyy commented 5 years ago

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