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

e2e test harness improvements for snapshot tests #6866

Open
xunilrj opened this issue Jan 28, 2025 · 0 comments
Open

e2e test harness improvements for snapshot tests #6866

xunilrj opened this issue Jan 28, 2025 · 0 comments
Assignees
Labels
testing General testing

Comments

@xunilrj
Copy link
Contributor

xunilrj commented Jan 28, 2025

Now that we have snapshot tests, we can have more complete tests if the test harness emits some "internals" like:

  1. focused IR;

we can emit IR very easily already with --print-ir, but we print the IR from the whole application when sometimes we only want to check the IR from a specific function.

  1. diff for an optimization pass and the previous pass;

Would be much easier to test if an optimization pass is doing what we want if we could print a simple diff from one pass to the next one.

  1. constant, configurable and "dynamic section" sizes;

This would be useful for testing dynamic configurable, but also to guarantee that variable-sized encoding (for enums, for example) always pad its buffer when saving direct configurables.

@xunilrj xunilrj self-assigned this Jan 28, 2025
@xunilrj xunilrj added the testing General testing label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing General testing
Projects
None yet
Development

No branches or pull requests

1 participant