diff options
author | Ben Smith <binjimin@gmail.com> | 2017-09-08 07:35:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-08 07:35:33 -0700 |
commit | 6a582bccddb48009414c5d909dea1544bcfcc512 (patch) | |
tree | c6b4d83de2aa9764c0208e05549960e100a7c498 /test/run-opcodecnt.py | |
parent | 0ecaaacb27d03a1aafc40397740f9bdd04bf8d73 (diff) | |
download | wabt-6a582bccddb48009414c5d909dea1544bcfcc512.tar.gz wabt-6a582bccddb48009414c5d909dea1544bcfcc512.tar.bz2 wabt-6a582bccddb48009414c5d909dea1544bcfcc512.zip |
Rename wast2wasm -> wat2wasm, wast2json (#617)
* wat2wasm only parses wat files (individual modules)
* wast2json parses spec test files and generates json + wasm
Diffstat (limited to 'test/run-opcodecnt.py')
-rw-r--r-- | test/run-opcodecnt.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/run-opcodecnt.py b/test/run-opcodecnt.py index 741a0e6b..4b508bdd 100644 --- a/test/run-opcodecnt.py +++ b/test/run-opcodecnt.py @@ -46,10 +46,10 @@ def main(args): parser.add_argument('file', help='test file.') options = parser.parse_args(args) - wast2wasm = utils.Executable( - find_exe.GetWast2WasmExecutable(options.bindir), + wat2wasm = utils.Executable( + find_exe.GetWat2WasmExecutable(options.bindir), error_cmdline=options.error_cmdline) - wast2wasm.AppendOptionalArgs({ + wat2wasm.AppendOptionalArgs({ '-v': options.verbose, }) @@ -57,12 +57,12 @@ def main(args): find_exe.GetWasmOpcodeCntExecutable(options.bindir), error_cmdline=options.error_cmdline) - wast2wasm.verbose = options.print_cmd + wat2wasm.verbose = options.print_cmd wasm_opcodecnt.verbose = options.print_cmd with utils.TempDirectory(options.out_dir, 'run-opcodecnt-') as out_dir: out_file = utils.ChangeDir(utils.ChangeExt(options.file, '.wasm'), out_dir) - wast2wasm.RunWithArgs(options.file, '-o', out_file) + wat2wasm.RunWithArgs(options.file, '-o', out_file) wasm_opcodecnt.RunWithArgs(out_file, '-c', str(options.cutoff)) return 0 |