This repository has been archived by the owner on Oct 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We can run wasm inside keeps now - let's prove it! Here's what this patch does: * Move wasm sources (*.wat) from internal/wasmldr/fixtures to tests/wasm * Copy .wat contents into wasmldr unittests and build inside the test * Remove wasmldr build.rs and update Cargo.toml * Build tests/wasm/*.wat to OUT_DIR/bin/*.wasm in build.rs * Add tests/wasmldr_tests.rs, which runs the .wasm test binaries The intent is that we should be adding more wasm tests over time; this gives us a place to put them and a harness to run them. The tricky bit was getting Rust to pass the module to the child process, since right now the only way we have to do that is to pass it on FD3 - but Rust doesn't have `dup2()` and it *really* wants to set FD_CLOEXEC on everything it opens, so we have to do some unsafe things to actually pass FDs to a child process. This isn't pretty, but it's a start. Signed-off-by: Will Woods <[email protected]>
- Loading branch information
Showing
13 changed files
with
257 additions
and
52 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.