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

Move wast tests to their own test suite #8598

Merged
merged 3 commits into from May 13, 2024

Conversation

alexcrichton
Copy link
Member

This commit moves testing of *.wast files out of the all test suite binary and into its own separate binary. The motivation for this is well-described in #4861 with one of the chief reasons being that if the test suite is run and then a new file is added re-running the test suite won't see the file.

The libtest-mimic crate provides an easy way of regaining most of the features of the libtest harness such as parallel test execution and filters, meaning that it's pretty easy to switch everything over. The only slightly-tricky bit was redoing the filter for whether a test is ignored or not, but most of the pieces were copied over from the previous build.rs logic.

Closes #4861

This commit moves testing of `*.wast` files out of the `all` test suite
binary and into its own separate binary. The motivation for this is
well-described in bytecodealliance#4861 with one of the chief reasons being that if the
test suite is run and then a new file is added re-running the test suite
won't see the file.

The `libtest-mimic` crate provides an easy way of regaining most of the
features of the `libtest` harness such as parallel test execution and
filters, meaning that it's pretty easy to switch everything over. The
only slightly-tricky bit was redoing the filter for whether a test is
ignored or not, but most of the pieces were copied over from the
previous `build.rs` logic.

Closes bytecodealliance#4861
@alexcrichton alexcrichton requested review from a team as code owners May 12, 2024 00:16
@alexcrichton alexcrichton requested review from elliottt and removed request for a team May 12, 2024 00:16
Copy link
Contributor

@jameysharp jameysharp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I am excited for this. Thank you for doing it!

tests/wast.rs Outdated Show resolved Hide resolved
tests/wast.rs Outdated Show resolved Hide resolved
@elliottt elliottt removed their request for review May 13, 2024 05:11
@alexcrichton alexcrichton added this pull request to the merge queue May 13, 2024
Merged via the queue into bytecodealliance:main with commit a6f27ee May 13, 2024
22 checks passed
@alexcrichton alexcrichton deleted the custom-wast-harness branch May 13, 2024 16:21
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

Successfully merging this pull request may close these issues.

Don't use libtest harness for wast tests
2 participants