diff options
author | Sam Clegg <sbc@chromium.org> | 2016-10-12 13:32:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-12 13:32:50 -0700 |
commit | 7de714088a3e4effd9e1915f725a99f2e9fd23ff (patch) | |
tree | 817ae0a01d91d0dcb36ca7a2eee53b6a37ff5a5f /test/find_exe.py | |
parent | 9b23a2a9a37f19a1516f270c2bd5d7b86cd14158 (diff) | |
download | wabt-7de714088a3e4effd9e1915f725a99f2e9fd23ff.tar.gz wabt-7de714088a3e4effd9e1915f725a99f2e9fd23ff.tar.bz2 wabt-7de714088a3e4effd9e1915f725a99f2e9fd23ff.zip |
Add wasmdump binary for inspecting wasm files (#161)
* Add wasmdump binary for inspecting wasm files
Run this tool to as part of the 'dump' tests rather
than using the -d flag to wast2wasm.
Diffstat (limited to 'test/find_exe.py')
-rw-r--r-- | test/find_exe.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/find_exe.py b/test/find_exe.py index 0c3d3e9b..5c0b66eb 100644 --- a/test/find_exe.py +++ b/test/find_exe.py @@ -25,6 +25,7 @@ SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) REPO_ROOT_DIR = os.path.dirname(SCRIPT_DIR) DEFAULT_WAST2WASM_EXE = os.path.join(REPO_ROOT_DIR, 'out', 'wast2wasm') DEFAULT_WASM2WAST_EXE = os.path.join(REPO_ROOT_DIR, 'out', 'wasm2wast') +DEFAULT_WASMDUMP_EXE = os.path.join(REPO_ROOT_DIR, 'out', 'wasmdump') DEFAULT_WASM_INTERP_EXE = os.path.join(REPO_ROOT_DIR, 'out', 'wasm-interp') DEFAULT_WASMOPCODECNT_EXE = os.path.join(REPO_ROOT_DIR, 'out', 'wasmopcodecnt') @@ -62,6 +63,10 @@ def GetWasm2WastExecutable(override=None): return FindExeWithFallback('wasm2wast', [DEFAULT_WASM2WAST_EXE], override) +def GetWasmdumpExecutable(override=None): + return FindExeWithFallback('wasmdump', [DEFAULT_WASMDUMP_EXE], override) + + def GetWasmInterpExecutable(override=None): return FindExeWithFallback('wasm-interp', [DEFAULT_WASM_INTERP_EXE], override) |