diff options
author | Ben Smith <binji@chromium.org> | 2016-11-08 12:25:58 -0800 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-12-05 15:41:36 -0800 |
commit | 98355e73ef121b8c3e2a0433e31fc8bac7057c70 (patch) | |
tree | 55536508a775e31ea652bdf1f780c4a5b7643ba2 /test/run-tests.py | |
parent | 538f5e61d10b19a0d7283e765589432bbeedcfa8 (diff) | |
download | wabt-98355e73ef121b8c3e2a0433e31fc8bac7057c70.tar.gz wabt-98355e73ef121b8c3e2a0433e31fc8bac7057c70.tar.bz2 wabt-98355e73ef121b8c3e2a0433e31fc8bac7057c70.zip |
Fix gen-spec-js.py
This now (mostly) matches the output from the spec interpreter.
Diffstat (limited to 'test/run-tests.py')
-rwxr-xr-x | test/run-tests.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/run-tests.py b/test/run-tests.py index ba544d98..e0f53d6e 100755 --- a/test/run-tests.py +++ b/test/run-tests.py @@ -157,7 +157,22 @@ TOOLS = { ]), '-v' ] - } + }, + 'run-gen-spec-js': { + 'EXE': 'test/run-gen-spec-js.py', + 'FLAGS': ' '.join([ + '--wast2wasm=%(wast2wasm)s', + '--wasm2wast=%(wasm2wast)s', + '--no-error-cmdline', + '-o', '%(out_dir)s', + ]), + 'VERBOSE-FLAGS': [ + ' '.join([ + '--print-cmd', + ]), + '-v' + ] + }, } ROUNDTRIP_TOOLS = ('wast2wasm',) @@ -743,6 +758,7 @@ def main(args): return 1 variables = {} + variables['test_dir'] = os.path.abspath(SCRIPT_DIR) for exe_basename in find_exe.EXECUTABLES: attr_name = exe_basename.replace('-', '_') |