-
Notifications
You must be signed in to change notification settings - Fork 824
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 integration tests to tests
dir in workspace root
#1349
Conversation
Some feedback:
|
Renaming is easy! I had trouble getting this to work properly without having them be crates: the current design is designed around calling code from a top level It's gone through quite a few iterations already to get here, but I'm sure there's ways to improve it |
Ok, fair point! |
bors try |
tryBuild failed |
bors try |
bors try |
tryAlready running a review |
bors try- |
bors try |
tryBuild failed |
bors try |
tryBuild failed |
bors try |
bors try- |
bors try |
tryBuild failed |
bors try |
tryBuild succeeded |
bors r+ |
1349: Move integration tests to `tests` dir in workspace root r=MarkMcCaskey a=MarkMcCaskey Reorganizing some of our tests. Still tests left to migrate and a few bugs to fix. # Review - [ ] Add a short description of the the change to the CHANGELOG.md file Co-authored-by: Mark McCaskey <[email protected]>
Canceled |
bors r+ |
1349: Move integration tests to `tests` dir in workspace root r=MarkMcCaskey a=MarkMcCaskey Reorganizing some of our tests. Still tests left to migrate and a few bugs to fix. # Review - [ ] Add a short description of the the change to the CHANGELOG.md file 1357: Refactored bin commands into separate files r=syrusakbary a=syrusakbary <!-- Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test: https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests --> # Description Refactored bin commands into separate files. This PR does not do any sustancial changes other than refactoring into different files for better readability. <!-- Provide details regarding the change including motivation, links to related issues, and the context of the PR. --> # 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: Syrus <[email protected]> Co-authored-by: Syrus Akbary <[email protected]>
Cargo.toml
Outdated
crate-type = ["bin"] | ||
|
||
[[example]] | ||
name = "callback" | ||
crate-type = ["bin"] | ||
crate-type = ["bin"] |
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.
can we have the trailing newline back?
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.
Hmm, usually when these get removed it's due to some tool doing it. I don't know if rustfmt affects cargo toml files (not sure what else it could be) 🤔
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.
Or maybe I accidentally deleted it 😆
tests/emtests/_common.rs
Outdated
use wasmer_dev_utils::stdio::StdioCapturer; | ||
|
||
let wasm_bytes = include_bytes!($file); | ||
let backend = $crate::emtests::_common::get_backend().expect("Please set one of `WASMER_TEST_CLIF`, `WASMER_TEST_LLVM`, or `WASMER_TEST_SINGELPASS` to `1`."); |
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.
Note that this error string may make a suggestion that won't help (WASM_TEST_LLVM=1 when llvm isn't compiled in).
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 fine with that for now, spectests
has its own version of this code that's more robust. Ideally we'll combine them together but that should be done in a PR where it's possible to read and understand the diff
|
||
static BANNER: &str = | ||
"// Rust test file autogenerated with cargo build (generate-emscripten-tests). | ||
// Please do NOT modify it by hand, as it will be reseted on next build.\n"; |
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.
// Please do NOT modify it by hand, as it will be reseted on next build.\n"; | |
// Please do NOT modify it by hand, as it will be reset on next build.\n"; |
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.
That's probably my english 😂
bors r- |
Canceled |
515e49c
to
ade38aa
Compare
bors r+ |
1349: Move integration tests to `tests` dir in workspace root r=MarkMcCaskey a=MarkMcCaskey Reorganizing some of our tests. Still tests left to migrate and a few bugs to fix. # Review - [ ] Add a short description of the the change to the CHANGELOG.md file 1357: Refactored bin commands into separate files r=syrusakbary a=syrusakbary <!-- Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test: https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests --> # Description Refactored bin commands into separate files. This PR does not do any sustancial changes other than refactoring into different files for better readability. <!-- Provide details regarding the change including motivation, links to related issues, and the context of the PR. --> # 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: Syrus <[email protected]> Co-authored-by: Syrus Akbary <[email protected]>
Build failed (retrying...)
|
Merging manually |
Reorganizing some of our tests.
Still tests left to migrate and a few bugs to fix.
Review