diff options
author | Sam Clegg <sbc@chromium.org> | 2017-01-20 09:57:47 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-20 09:57:47 -0800 |
commit | 86d121eb85f4e75fb0207bd5a13891e3d4de7ee9 (patch) | |
tree | 7bdc04092659b79d66393ef864802d4d63673f4b /test/run-interp.py | |
parent | aa49b05e65ebff47fb89c100f2e4e48f080c48a9 (diff) | |
download | wabt-86d121eb85f4e75fb0207bd5a13891e3d4de7ee9.tar.gz wabt-86d121eb85f4e75fb0207bd5a13891e3d4de7ee9.tar.bz2 wabt-86d121eb85f4e75fb0207bd5a13891e3d4de7ee9.zip |
Improve wasmdump command line options (#284)
* Improve wasmdump command line options
These changes make wasmdump more closely match objdump.
Change -v/--verbose to -x/--details. Change -r/--raw to
-s/--full-contents. Error out unless on of -x/-d/-r/-h is
specified. Previously wasmdump would simply print nothing
at all which was confusing.
Diffstat (limited to 'test/run-interp.py')
-rwxr-xr-x | test/run-interp.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/test/run-interp.py b/test/run-interp.py index 4f90dcbc..155ddb2f 100755 --- a/test/run-interp.py +++ b/test/run-interp.py @@ -58,10 +58,6 @@ def main(args): '--use-libc-allocator': options.use_libc_allocator }) - wasmdump = utils.Executable( - find_exe.GetWasmdumpExecutable(options.bindir), - error_cmdline=options.error_cmdline) - wasm_interp = utils.Executable( find_exe.GetWasmInterpExecutable(options.bindir), error_cmdline=options.error_cmdline) @@ -79,13 +75,6 @@ def main(args): new_ext = '.json' if options.spec else '.wasm' out_file = utils.ChangeDir(utils.ChangeExt(options.file, new_ext), out_dir) wast2wasm.RunWithArgs(options.file, '-o', out_file) - if options.spec: - wasm_files = utils.GetModuleFilenamesFromSpecJSON(out_file) - wasm_files = [utils.ChangeDir(f, out_dir) for f in wasm_files] - else: - wasm_files = [out_file] - for wasm_file in wasm_files: - wasmdump.RunWithArgs(wasm_file) wasm_interp.RunWithArgs(out_file) return 0 |