-
Notifications
You must be signed in to change notification settings - Fork 831
[test] Port tests in test/ to test/lit/basic/ #6160
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
Conversation
This ports all tests from `test/` to `test/lit/basic/`. The set of commands and `CHECK` lines used are the same as the ones in WebAssembly#6159. Now we use `lit` to test these, this also deletes all `.wast`, `.wast.from-wast`, `.wast.fromBinary`, and `.wast.fromBinary.noDebugInfo` files from `test/`. All tests lines are generated by `update_lit_checks.py --all-items`. This also deletes these three multi-memory tests in `test/lit/`, because they seem to contain the same code with the ones in `test/`, which have been ported to `test/lit/basic/` along with other tests. - `test/lit/multi-memories-atomics64.wast` - `test/lit/multi-memories-basics.wast` - `test/lit/multi-memories-simd.wast` This also adds newlines between `(func`s in case there are none, to make `CHECK` lines easy to view and removes some extra existing newlines here and there.
|
Looks like some |
I also see some dangling tests in |
|
I didn't know this, but it looks wasm2js tests use some source files from binaryen/scripts/test/wasm2js.py Line 51 in 1d615b3
I guess I just need to redirect them to |
|
|
The wasm2js failure in the CI will be fixed after #6164 lands. |
|
|
||
| def update_wasm_opt_tests(): | ||
| print('\n[ checking wasm-opt -o notation... ]\n') | ||
| print('\n[ updating wasm-opt -o notation... ]\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.
Drive-by fix: checking->updating in update_wasm_opt_tests messages
|
|
||
| shared.minify_check(t) | ||
|
|
||
| print('\n[ checking wasm-opt debugInfo read-write... ]\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.
This line should've been removed in #6162
|
Any more concerns on landing this PR? |
We ported basic tests to `test/lit/basic/` in WebAssembly#6160, but comparing `CHECK` lines with the test code for long functions is not easy, even though it wouldn't necessarily be worse than the the separate files we used to have in `test/`. This slices `exception-handling.wast` into functions so that the `CHECK` lines are easy to check.
tlively
left a comment
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.
LGTM!
We ported basic tests to `test/lit/basic/` in WebAssembly#6160, but comparing `CHECK` lines with the test code for long functions is not easy, even though it wouldn't necessarily be worse than the the separate files we used to have in `test/`. This slices `exception-handling.wast` into functions so that the `CHECK` lines are easy to check.
We ported basic tests to `test/lit/basic/` in #6160, but comparing `CHECK` lines with the test code for long functions is not easy, even though it wouldn't necessarily be worse than the the separate files we used to have in `test/`. This slices `exception-handling.wast` into functions so that the `CHECK` lines are easy to check.
This ports all tests from `test/` to `test/lit/basic/`. The set of commands and `CHECK` lines used are the same as the ones in WebAssembly#6159. Now we use `lit` to test these, this also deletes all `.wast`, `.wast.from-wast`, `.wast.fromBinary`, and `.wast.fromBinary.noDebugInfo` files from `test/` and all related test routines from the python scripts. All `CHECK` lines are generated by `update_lit_checks.py --all-items`. This also deletes these three multi-memory tests in `test/lit/`, because they seem to contain the same code with the ones in `test/`, which have been ported to `test/lit/basic/` along with other tests. - `test/lit/multi-memories-atomics64.wast` - `test/lit/multi-memories-basics.wast` - `test/lit/multi-memories-simd.wast` This also adds newlines between `(func`s in case there are none to make `CHECK` lines easy to view, and removes some extra existing newlines here and there.
We ported basic tests to `test/lit/basic/` in WebAssembly#6160, but comparing `CHECK` lines with the test code for long functions is not easy, even though it wouldn't necessarily be worse than the the separate files we used to have in `test/`. This slices `exception-handling.wast` into functions so that the `CHECK` lines are easy to check.
The last usage of this was removed in #6160. I'm assuming this was intentional and we didn't loose any coverage?
The last usage of this was removed in #6160. I'm assuming this was intentional and we didn't loose any coverage?
This ports all tests from
test/totest/lit/basic/. The set of commands andCHECKlines used are the same as the ones in #6159. Now we uselitto test these, this also deletes all.wast,.wast.from-wast,.wast.fromBinary, and.wast.fromBinary.noDebugInfofiles fromtest/and all related test routines from the python scripts.All
CHECKlines are generated byupdate_lit_checks.py --all-items.This also deletes these three multi-memory tests in
test/lit/, because they seem to contain the same code with the ones intest/, which have been ported totest/lit/basic/along with other tests.test/lit/multi-memories-atomics64.wasttest/lit/multi-memories-basics.wasttest/lit/multi-memories-simd.wastThis also adds newlines between
(funcs in case there are none to makeCHECKlines easy to view, and removes some extra existing newlines here and there.