Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leverage SpecTests for Instrumentation Testing #160

Open
ejrgilbert opened this issue Aug 28, 2024 · 0 comments
Open

Leverage SpecTests for Instrumentation Testing #160

ejrgilbert opened this issue Aug 28, 2024 · 0 comments

Comments

@ejrgilbert
Copy link
Collaborator

To have breadth with testing instrumentation, we should integrate with the spectest wast files and have the following logic:

  1. Load wast
  2. Break out each test case (module(s) and assertion(s))
  3. foreach non_alt_mode: Instrument the module(s) with instrumentation that has no side effects, but exercises all logic
    • Add new global(s)
    • Add new local function(s)
    • Instrument some target with logic that calls the function
    • Write to new wast file, one test case per file
    • Run on configured interpreters (all assertions should still pass)

We will also need to have some mechanism to ensure that the instrumented wast actually had some instrumentation logic applied (should have matched and injected at least once).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant