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

Update wasi-tests to test multiple versions of WASI #1300

Merged
merged 4 commits into from
Mar 16, 2020

Conversation

MarkMcCaskey
Copy link
Contributor

@MarkMcCaskey MarkMcCaskey commented Mar 13, 2020

This change also cleans up the wasi-test generation a bit. It's
actually still really, really messy, but at least now it's split up
into easier to understand chunks.

There's still a lot of low-hanging fruit in terms of improving the
readability and maintainability of the code.

Improves test coverage over what's on master. Things in ignores.txt weren't being tested on master either; we should do a follow up to remove them from there (will require finding a good solution for raw WASI calls)

Review

  • Add a short description of the the change to the CHANGELOG.md file

This change also cleans up the `wasi-test` generation a bit.  It's
actually still really, really messy, but at least now it's split up
into easier to understand chunks.

There's still a lot of low-hanging fruit in terms of improving the
readibilty and maintainability of the code.
@MarkMcCaskey MarkMcCaskey added 🧪 tests I love tests 📦 lib-wasi About wasmer-wasi labels Mar 13, 2020
mod readlink;
mod wasi_sees_virtual_root;
mod writing;
mod snapshot1_close_preopen_fd;
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps having them in different dirs might be good? (not sure)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, I think that's a good change. It's a bit non-trivial to update it though as it will require updating some of the structure of the code and the way the ignore list works -- I think that'd be a good follow up issue, but I can prioritize it now if you want!

@MarkMcCaskey
Copy link
Contributor Author

bors r+

bors bot added a commit that referenced this pull request Mar 16, 2020
1300: Update `wasi-tests` to test multiple versions of WASI r=MarkMcCaskey a=MarkMcCaskey

This change also cleans up the `wasi-test` generation a bit.  It's
actually still really, really messy, but at least now it's split up
into easier to understand chunks.

There's still a lot of low-hanging fruit in terms of improving the
readability and maintainability of the code.

Improves test coverage over what's on master.  Things in `ignores.txt` weren't being tested on master either; we should do a follow up to remove them from there (will require finding a good solution for raw WASI calls)

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Mark McCaskey <[email protected]>
Co-authored-by: Mark McCaskey <[email protected]>
@MarkMcCaskey
Copy link
Contributor Author

bors r+

@MarkMcCaskey
Copy link
Contributor Author

bors r-

@MarkMcCaskey
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 16, 2020

Already running a review

@bors
Copy link
Contributor

bors bot commented Mar 16, 2020

Build failed

@MarkMcCaskey
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 16, 2020

Build succeeded

@bors bors bot merged commit 20c21e8 into master Mar 16, 2020
@bors bors bot deleted the feature/improved-wasitests branch March 16, 2020 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 lib-wasi About wasmer-wasi 🧪 tests I love tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants