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-gen-spec-js.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-gen-spec-js.py')
-rwxr-xr-x | test/run-gen-spec-js.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/run-gen-spec-js.py b/test/run-gen-spec-js.py index 5afc5f9e..a80a2464 100755 --- a/test/run-gen-spec-js.py +++ b/test/run-gen-spec-js.py @@ -54,14 +54,14 @@ def main(args): parser.add_argument('-p', '--print-cmd', help='print the commands that are run.', action='store_true') - parser.add_argument('file', help='wast file.') + parser.add_argument('file', help='wat file.') options = parser.parse_args(args) with utils.TempDirectory(options.out_dir, 'run-gen-spec-js-') as out_dir: - wast2wasm = utils.Executable( - find_exe.GetWast2WasmExecutable(options.bindir), '--spec', + wast2json = utils.Executable( + find_exe.GetWast2JsonExecutable(options.bindir), error_cmdline=options.error_cmdline) - wast2wasm.AppendOptionalArgs({'-v': options.verbose}) + wast2json.AppendOptionalArgs({'-v': options.verbose}) gen_spec_js = utils.Executable(sys.executable, GEN_SPEC_JS_PY, '--temp-dir', out_dir, @@ -75,7 +75,7 @@ def main(args): json_file = utils.ChangeDir( utils.ChangeExt(options.file, '.json'), out_dir) js_file = utils.ChangeExt(json_file, '.js') - wast2wasm.RunWithArgs(options.file, '-o', json_file) + wast2json.RunWithArgs(options.file, '-o', json_file) if options.js_engine: gen_spec_js.RunWithArgs(json_file, '-o', js_file) |