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

[test] Remove / move *.js tests from test/ #6163

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

aheejin
Copy link
Member

@aheejin aheejin commented Dec 10, 2023

wasm2js.asserts.js and wasm2js.traps.js seem to be used in wasm2js asserts test:

assert_tests = ['wasm2js.wast.asserts']
asserts = os.path.basename(wasm).replace('.wast.asserts', '.asserts.js')
traps = os.path.basename(wasm).replace('.wast.asserts', '.traps.js')

But other *.js tests in test/ don't seem to be used anywhere. Please let me know if they are actually being used.

This moves wasm2js.asserts.js and wasm2js.traps.js, which are only used in wasmjs tests, to test/wasm2js/, and deletes all other *.js tests in test/.

`wasm2js.asserts.js` and `wasm2js.traps.js` seem to be used in wasm2js
asserts test:
https://github.com/WebAssembly/binaryen/blob/1d615b38dd4152494d2f4d3520c8b1d917624a30/scripts/test/wasm2js.py#L28
https://github.com/WebAssembly/binaryen/blob/1d615b38dd4152494d2f4d3520c8b1d917624a30/scripts/test/wasm2js.py#L126-L127

But other `*.js` tests in `test/` don't seem to be used anywhere. Please
let me know if they are actually being used.

This moves `wasm2js.asserts.js` and `wasm2js.traps.js`, which are only
used in wasmjs tests, to `test/wasm2js/`, and deletes all other `*.js`
tests in `test/`.
@aheejin aheejin requested review from kripken and tlively December 10, 2023 07:50
Copy link
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

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

Nice find! It looks like these haven't been looked at in 8 years.

@aheejin aheejin merged commit cba8e18 into WebAssembly:main Dec 12, 2023
14 checks passed
@aheejin aheejin deleted the remove_js_tests branch December 12, 2023 01:40
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
`wasm2js.asserts.js` and `wasm2js.traps.js` seem to be used in wasm2js
asserts test:
https://github.com/WebAssembly/binaryen/blob/1d615b38dd4152494d2f4d3520c8b1d917624a30/scripts/test/wasm2js.py#L28
https://github.com/WebAssembly/binaryen/blob/1d615b38dd4152494d2f4d3520c8b1d917624a30/scripts/test/wasm2js.py#L126-L127

But other `*.js` tests in `test/` don't seem to be used anywhere. Please
let me know if they are actually being used.

This moves `wasm2js.asserts.js` and `wasm2js.traps.js`, which are only
used in wasmjs tests, to `test/wasm2js/`, and deletes all other `*.js`
tests in `test/`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants