summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/embedwat.py (renamed from scripts/embedwast.py)8
-rw-r--r--scripts/fuzz_opt.py2
-rwxr-xr-xscripts/test/lld.py30
3 files changed, 20 insertions, 20 deletions
diff --git a/scripts/embedwast.py b/scripts/embedwat.py
index 804be4211..dfb12b772 100755
--- a/scripts/embedwast.py
+++ b/scripts/embedwat.py
@@ -20,17 +20,17 @@ input_file = sys.argv[1]
output_file = sys.argv[2]
with open(input_file) as f:
- wast = f.read()
+ wat = f.read()
output = """\
-// Automatically generated by embedwast.py
+// Automatically generated by embedwat.py
#include "passes/intrinsics-module.h"
static const char theModule[%d] = {
-""" % (len(wast) + 1)
+""" % (len(wat) + 1)
-for c in wast:
+for c in wat:
output += str(ord(c)) + ', '
output += '''0
diff --git a/scripts/fuzz_opt.py b/scripts/fuzz_opt.py
index 9cf3ff44d..a66c599bb 100644
--- a/scripts/fuzz_opt.py
+++ b/scripts/fuzz_opt.py
@@ -536,7 +536,7 @@ if not NANS:
# possible feature options that are sometimes passed to the tools. this
# contains the list of all possible feature flags we can disable (after
# we enable all before that in the constant options)
-POSSIBLE_FEATURE_OPTS = run([in_bin('wasm-opt'), '--print-features', '-all', in_binaryen('test', 'hello_world.wast'), '-all']).replace('--enable', '--disable').strip().split('\n')
+POSSIBLE_FEATURE_OPTS = run([in_bin('wasm-opt'), '--print-features', '-all', in_binaryen('test', 'hello_world.wat'), '-all']).replace('--enable', '--disable').strip().split('\n')
print('POSSIBLE_FEATURE_OPTS:', POSSIBLE_FEATURE_OPTS)
if __name__ == '__main__':
diff --git a/scripts/test/lld.py b/scripts/test/lld.py
index 46e1023ec..2f2ebbf20 100755
--- a/scripts/test/lld.py
+++ b/scripts/test/lld.py
@@ -32,10 +32,10 @@ def args_for_finalize(filename):
def test_wasm_emscripten_finalize():
print('\n[ checking wasm-emscripten-finalize testcases... ]\n')
- for wast_path in shared.get_tests(shared.get_test_dir('lld'), ['.wast']):
- print('..', wast_path)
- is_passive = '.passive.' in wast_path
- mem_file = wast_path + '.mem'
+ for wat_path in shared.get_tests(shared.get_test_dir('lld'), ['.wat']):
+ print('..', wat_path)
+ is_passive = '.passive.' in wat_path
+ mem_file = wat_path + '.mem'
extension_arg_map = {
'.out': [],
}
@@ -44,13 +44,13 @@ def test_wasm_emscripten_finalize():
'.mem.out': ['--separate-data-segments', mem_file],
})
for ext, ext_args in extension_arg_map.items():
- expected_file = wast_path + ext
+ expected_file = wat_path + ext
if ext != '.out' and not os.path.exists(expected_file):
continue
- cmd = shared.WASM_EMSCRIPTEN_FINALIZE + [wast_path, '-S'] + \
+ cmd = shared.WASM_EMSCRIPTEN_FINALIZE + [wat_path, '-S'] + \
ext_args
- cmd += args_for_finalize(os.path.basename(wast_path))
+ cmd += args_for_finalize(os.path.basename(wat_path))
actual = support.run_command(cmd)
if not os.path.exists(expected_file):
@@ -61,7 +61,7 @@ def test_wasm_emscripten_finalize():
if ext == '.mem.out':
with open(mem_file) as mf:
mem = mf.read()
- shared.fail_if_not_identical_to_file(mem, wast_path +
+ shared.fail_if_not_identical_to_file(mem, wat_path +
'.mem.mem')
os.remove(mem_file)
@@ -69,10 +69,10 @@ def test_wasm_emscripten_finalize():
def update_lld_tests():
print('\n[ updatring wasm-emscripten-finalize testcases... ]\n')
- for wast_path in shared.get_tests(shared.get_test_dir('lld'), ['.wast']):
- print('..', wast_path)
- is_passive = '.passive.' in wast_path
- mem_file = wast_path + '.mem'
+ for wat_path in shared.get_tests(shared.get_test_dir('lld'), ['.wat']):
+ print('..', wat_path)
+ is_passive = '.passive.' in wat_path
+ mem_file = wat_path + '.mem'
extension_arg_map = {
'.out': [],
}
@@ -81,12 +81,12 @@ def update_lld_tests():
'.mem.out': ['--separate-data-segments', mem_file + '.mem'],
})
for ext, ext_args in extension_arg_map.items():
- out_path = wast_path + ext
+ out_path = wat_path + ext
if ext != '.out' and not os.path.exists(out_path):
continue
- cmd = shared.WASM_EMSCRIPTEN_FINALIZE + [wast_path, '-S'] + \
+ cmd = shared.WASM_EMSCRIPTEN_FINALIZE + [wat_path, '-S'] + \
ext_args
- cmd += args_for_finalize(os.path.basename(wast_path))
+ cmd += args_for_finalize(os.path.basename(wat_path))
actual = support.run_command(cmd)
with open(out_path, 'w') as o:
o.write(actual)