WebAssembly / WebAssembly/binaryen

Import and run the upstream spec tests

Open
#6,612 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
WebAssembly
Stars
8.6k
Forks
885
Avg merge
1d 19h
Merged PRs (30d)
69

Description

Now that wasm-shell parses the standard wast format, we should import and run the upstream spec tests, ideally by importing https://github.com/WebAssembly/testsuite as a git submodule. (We already use git submodules to import gtest, so this is not fundamentally different than what we're already doing.)

This will require fixing various bugs in the interpreter and adding support for instructions like table.init that we do not already support.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting how the existing gtest git submodule is imported, then trace wasm-shell's spec-test execution path. Compare the upstream WebAssembly testsuite with currently supported interpreter instructions, including table.init. Done means the testsuite is imported and run, with the required interpreter bugs and missing instruction support addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
compilers, testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.