WebAssembly / stack-switching

A repository for the stack switching proposal.
Other
146 stars 13 forks source link

Spec testsuite #80

Open dhil opened 3 months ago

dhil commented 3 months ago

We should develop the spec testsuite for the stack switching proposal. We have something implemented already in (cont.wast, validation.wast, validation_gc.wast), however it does not thoroughly test switch and it could do a better job of testing interactions with other proposals (exception handling and gc would be of particular interest, I think).

rossberg commented 3 months ago

Good idea. We should structure it along the lines of other proposals, i.e., a cont/ (or stack/) subdirectory, and separate wast files per instruction tested, where possible.

frank-emrich commented 3 months ago

Do the tests for other proposals usually separate the tests for validation from those for execution in some way? We do have some tests that attempt to cover every aspect of the validation of wasmfx instructions here and here.

I'm happy to split these into per-instruction files, but I'm wondering about the file structure beyond that. For example, the existing file structure makes sure that everything depending on GC lives in its own file, so we can use these files to also use these tests on engines that don't implement GC yet.

rossberg commented 3 months ago

So far, validation and execution isn't split anywhere.