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 Testing #145

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

Leverage SpecTests for Testing #145

ejrgilbert opened this issue Aug 28, 2024 · 0 comments
Labels
enhancement New feature or request testing Has to do with testing the project

Comments

@ejrgilbert
Copy link
Owner

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 (supported_event, 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).

@ejrgilbert ejrgilbert added enhancement New feature or request testing Has to do with testing the project labels Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request testing Has to do with testing the project
Projects
None yet
Development

No branches or pull requests

1 participant