Skip to content

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
@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