summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/check.py b/check.py
index 3da89460b..28bdb436b 100755
--- a/check.py
+++ b/check.py
@@ -521,6 +521,12 @@ if 0: # TODO: figure out the story. will .s files have drops?
# bar should be linked from the archive
fail_if_not_contained(output, '(func $bar')
+ # Test exporting memory growth function
+ cmd = [s2wasm, os.path.join('test', 'linker', 'main.s'), '--emscripten-glue', '--allow-memory-growth']
+ output = run_command(cmd)
+ fail_if_not_contained(output, '(export "__growWasmMemory" $__growWasmMemory)')
+ fail_if_not_contained(output, '(func $__growWasmMemory (param $newSize i32)')
+
print '\n[ running validation tests... ]\n'
wasm_as = os.path.join('bin', 'wasm-as')
# Ensure the tests validate by default