diff options
author | Heejin Ahn <aheejin@gmail.com> | 2023-12-11 17:40:49 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-11 17:40:49 -0800 |
commit | cba8e18a70f76364e6b6ecdbbe4931c11dc58c08 (patch) | |
tree | 990dc6b965c01b61c814057aa273f7cebabedc49 /scripts | |
parent | 9e07c8266edcc77624748032ae1186953f6242df (diff) | |
download | binaryen-cba8e18a70f76364e6b6ecdbbe4931c11dc58c08.tar.gz binaryen-cba8e18a70f76364e6b6ecdbbe4931c11dc58c08.tar.bz2 binaryen-cba8e18a70f76364e6b6ecdbbe4931c11dc58c08.zip |
[test] Remove / move *.js tests from test/ (#6163)
`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/`.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/test/wasm2js.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/test/wasm2js.py b/scripts/test/wasm2js.py index 374e93297..6463fa3a8 100644 --- a/scripts/test/wasm2js.py +++ b/scripts/test/wasm2js.py @@ -127,8 +127,8 @@ def test_asserts_output(): asserts = os.path.basename(wasm).replace('.wast.asserts', '.asserts.js') traps = os.path.basename(wasm).replace('.wast.asserts', '.traps.js') - asserts_expected_file = os.path.join(shared.options.binaryen_test, asserts) - traps_expected_file = os.path.join(shared.options.binaryen_test, traps) + asserts_expected_file = os.path.join(shared.options.binaryen_test, 'wasm2js', asserts) + traps_expected_file = os.path.join(shared.options.binaryen_test, 'wasm2js', traps) wasm = os.path.join(shared.get_test_dir('wasm2js'), wasm) cmd = shared.WASM2JS + [wasm, '--allow-asserts', '-all', @@ -203,8 +203,8 @@ def update_wasm2js_tests(): asserts = os.path.basename(wasm).replace('.wast.asserts', '.asserts.js') traps = os.path.basename(wasm).replace('.wast.asserts', '.traps.js') - asserts_expected_file = os.path.join(shared.options.binaryen_test, asserts) - traps_expected_file = os.path.join(shared.options.binaryen_test, traps) + asserts_expected_file = os.path.join(shared.options.binaryen_test, 'wasm2js', asserts) + traps_expected_file = os.path.join(shared.options.binaryen_test, 'wasm2js', traps) cmd = shared.WASM2JS + [os.path.join(shared.get_test_dir('wasm2js'), wasm), '--allow-asserts', '-all', '--disable-exception-handling'] out = support.run_command(cmd) |