diff options
author | Sam Clegg <sbc@chromium.org> | 2017-04-04 10:34:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-04 10:34:06 -0700 |
commit | ea63e5c26cf2c2240d0f1c9f671092003a5316b8 (patch) | |
tree | 4b0cb7f00f445dfb35629699f893d8297f8d0725 /test/run-wasmdump.py | |
parent | ad0d589c6bf89afaac6ab24fb0c20c9b1a6f0297 (diff) | |
download | wabt-ea63e5c26cf2c2240d0f1c9f671092003a5316b8.tar.gz wabt-ea63e5c26cf2c2240d0f1c9f671092003a5316b8.tar.bz2 wabt-ea63e5c26cf2c2240d0f1c9f671092003a5316b8.zip |
Add dump test that shows inline relocations (#387)
Diffstat (limited to 'test/run-wasmdump.py')
-rwxr-xr-x | test/run-wasmdump.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/run-wasmdump.py b/test/run-wasmdump.py index efb3eb2c..8bd3d246 100755 --- a/test/run-wasmdump.py +++ b/test/run-wasmdump.py @@ -50,6 +50,7 @@ def main(args): parser.add_argument('--gen-wasm', action='store_true', help='parse with gen-wasm') parser.add_argument('--spec', action='store_true') + parser.add_argument('-r', '--relocatable', action='store_true') parser.add_argument('--no-canonicalize-leb128s', action='store_true') parser.add_argument('--debug-names', action='store_true') parser.add_argument('file', help='test file.') @@ -70,6 +71,7 @@ def main(args): '--no-canonicalize-leb128s': options.no_canonicalize_leb128s, '--spec': options.spec, '-v': options.verbose, + '-r': options.relocatable, '-c': options.compile_only, }) @@ -108,7 +110,7 @@ def main(args): wasm_files = [out_file] for wasm_file in wasm_files: - wasmdump.RunWithArgs('-d', wasm_file) + wasmdump.RunWithArgs('-r', '-d', wasm_file) if __name__ == '__main__': |