summaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-09-05 18:12:26 -0700
committerGitHub <noreply@github.com>2019-09-05 18:12:26 -0700
commita0c77bf09dc561f9857bd44167fb04d571e3036a (patch)
tree26b5469f15742609b7ad7691c11b93f2f0416a55 /scripts/test
parent3ac5416a6b070096fcd26c94fcdb7c0c144c72b4 (diff)
downloadbinaryen-a0c77bf09dc561f9857bd44167fb04d571e3036a.tar.gz
binaryen-a0c77bf09dc561f9857bd44167fb04d571e3036a.tar.bz2
binaryen-a0c77bf09dc561f9857bd44167fb04d571e3036a.zip
[wasm2js] Fix memory.size (#2330)
We emitted the __wasm_memory_size function only when memory growth was enabled, but it can be used without that too. In theory we could only emit it if either memory growth or memory.size is used, but I think we can expect JS minifiers to do that later. Also fix a test suite bug - the check/auto_update script didn't run all the wasm2js tests when you run it with argument wasm2js (it used that as the list of tests, instead of the list of files, which confused me here for a while...).
Diffstat (limited to 'scripts/test')
-rwxr-xr-xscripts/test/wasm2js.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/test/wasm2js.py b/scripts/test/wasm2js.py
index 3cb766bcd..24c14680d 100755
--- a/scripts/test/wasm2js.py
+++ b/scripts/test/wasm2js.py
@@ -18,11 +18,11 @@ import os
from .support import run_command, split_wast, write_wast
from .shared import (
- WASM2JS, MOZJS, NODEJS, fail_if_not_identical, options, tests,
+ WASM2JS, MOZJS, NODEJS, fail_if_not_identical, options,
fail_if_not_identical_to_file, with_pass_debug
)
-# tests with i64s, invokes, etc.
+tests = sorted(os.listdir(os.path.join(options.binaryen_test)))
spec_dir = os.path.join(options.binaryen_test, 'spec')
spec_tests = [os.path.join(spec_dir, t)
for t in sorted(os.listdir(spec_dir))