summaryrefslogtreecommitdiff
path: root/test/find_exe.py
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-09-08 07:35:33 -0700
committerGitHub <noreply@github.com>2017-09-08 07:35:33 -0700
commit6a582bccddb48009414c5d909dea1544bcfcc512 (patch)
treec6b4d83de2aa9764c0208e05549960e100a7c498 /test/find_exe.py
parent0ecaaacb27d03a1aafc40397740f9bdd04bf8d73 (diff)
downloadwabt-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/find_exe.py')
-rw-r--r--test/find_exe.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/find_exe.py b/test/find_exe.py
index d05fac18..a7046605 100644
--- a/test/find_exe.py
+++ b/test/find_exe.py
@@ -24,8 +24,8 @@ IS_WINDOWS = sys.platform == 'win32'
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
REPO_ROOT_DIR = os.path.dirname(SCRIPT_DIR)
EXECUTABLES = [
- 'wast2wasm', 'wasm2wat', 'wasm-objdump', 'wasm-interp', 'wasm-opcodecnt',
- 'wast-desugar', 'wasm-link'
+ 'wat2wasm', 'wast2json', 'wasm2wat', 'wasm-objdump', 'wasm-interp',
+ 'wasm-opcodecnt', 'wast-desugar', 'wasm-link'
]
@@ -64,8 +64,12 @@ def FindExecutable(basename, override=None):
return FindExeWithFallback(basename, [GetDefaultExe(basename)], override)
-def GetWast2WasmExecutable(override=None):
- return FindExecutable('wast2wasm', override)
+def GetWat2WasmExecutable(override=None):
+ return FindExecutable('wat2wasm', override)
+
+
+def GetWast2JsonExecutable(override=None):
+ return FindExecutable('wast2json', override)
def GetWasm2WatExecutable(override=None):