-
Notifications
You must be signed in to change notification settings - Fork 15
Merge wasi-misc-tests repo as a subdir #174
Conversation
These wrappers handle converting from &str to pointer+length and handle unsafe.
Ensure that clearing __WASI_RIGHT_PATH_FILESTAT_SET_SIZE succeeds before testing file truncation.
Modularise tests for easier use with wasi-common crate
Fix typo
* nofollow_errors now operators on symlinks to existing resources * dangling_symlink covers danling symlinks tests
* Enable Actions and add rust.yml This commit enables Github Actions and adds corresponding configuration in rust.yml file. * Update rust.yml * Fix formatting * Add empty .rustfmt.toml config file
* Add test case for `poll_oneoff` syscall This commit adds a test case for `poll_oneoff` syscall. In particular, it builds on the excellent test use case provided by @dunnock in their repo [poll_oneoff_tests] (thanks!), and tests: * simple timeout * stdin read with timeout * fd read and fd write polls [poll_oneoff_tests]: https://github.com/dunnock/poll_oneoff_tests * Apply suggestions and negative test for bad fd Co-authored-by: Maxim Vorobjov <maxim.vorobjov@gmail.com> * Add smoke test for STDOUT/ERR readwrite poll * Add comment on stdin/out/err
340defd
to
1cb2bfc
Compare
This commit merges [CraneStation/wasi-misc-tests] repo as a subdir of this repo while preserving **all** of git history. There is an initiative to pull `wasi-common` and `wasi-misc-tests` into [CraneStation/wasmtime], and [CraneStation/wasmtime] becoming a monorepo. This came about for several reasons with a common theme of convenience, namely, having a monorepo: 1. cleans up the problem of dependencies (as we have seen first hand with dependabot enabled, it can cause some grief) 2. completely removes the problem of syncing the closely dependent repos (e.g., updating wasi-common with say a bugfix generally implies creating a "sync" commit for pulling in the changes into the "parent" repo, in this case, `wasmtime`; similar case would happen for `wasi-misc-tests` vs `wasi-common` scenario) 3. mainly for the two reasons above, makes publishing to crates.io easier 4. hopefully streamlines the process of getting the community involved in contributing tests to `wasi-common` as now everything is one place [CraneStation/wasi-misc-tests]: https://github.com/CraneStation/wasi-misc-tests [CraneStation/wasmtime]: https://github.com/CraneStation/wasmtime Additionally, while here, this commit also updates the dependencies and cleans up `Cargo.toml` with details such as authors, etc.
1cb2bfc
to
36d8155
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm definitely in favor of merging those two repos!
wasi-misc-tests/LICENSE
Outdated
@@ -0,0 +1,220 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a separate license here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd need one if the crate would be published on crates.io, but I don't think we mean to do that for now, so we can omit the LICENSE if you want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed! We can re-add it later when and if we decide to publish wasi-misc-tests
as a crate. :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍. I also think we can forego the additional LICENSE file, but this looks great. Thanks!
name = "wasi-misc-tests" | ||
version = "0.1.0" | ||
authors = ["The Wasmtime Project Developers"] | ||
edition = "2018" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add 'publish = false' here since this isn't meant to be published on crates.io in its current form.
This commit merges CraneStation/wasi-misc-tests repo as a subdir
of this repo while preserving all of git history. There is an
initiative to pull
wasi-common
andwasi-misc-tests
intoCraneStation/wasmtime, and CraneStation/wasmtime becoming a
monorepo. This came about for several reasons with a common theme
of convenience, namely, having a monorepo:
hand with dependabot enabled, it can cause some grief)
repos (e.g., updating wasi-common with say a bugfix generally
implies creating a "sync" commit for pulling in the changes
into the "parent" repo, in this case,
wasmtime
; similar casewould happen for
wasi-misc-tests
vswasi-common
scenario)crates.io easier
in contributing tests to
wasi-common
as now everything is oneplace
Additionally, while here, this commit also updates the dependencies and
cleans up
Cargo.toml
with details such as authors, etc.