summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-01-04 11:30:06 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-01-04 11:30:37 -0800
commit1f8e4a4da473f6a76e48c3ffb6f0aec2d3c1b5a3 (patch)
tree393589648dc3b1c87eff27b655067278fffcbb70
parent9a92d6fd774221d66f5d6fdab17b517180535a6b (diff)
downloadbinaryen-1f8e4a4da473f6a76e48c3ffb6f0aec2d3c1b5a3.tar.gz
binaryen-1f8e4a4da473f6a76e48c3ffb6f0aec2d3c1b5a3.tar.bz2
binaryen-1f8e4a4da473f6a76e48c3ffb6f0aec2d3c1b5a3.zip
add a test for s2wasm options
-rwxr-xr-xcheck.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/check.py b/check.py
index 37fa674a0..445ec5655 100755
--- a/check.py
+++ b/check.py
@@ -270,6 +270,11 @@ for s in sorted(os.listdir(os.path.join('test', 'dot_s'))) + sorted(os.listdir(o
if actual != expected:
fail(actual, expected)
+ # verify with options
+ proc = subprocess.Popen([os.path.join('bin', 's2wasm'), full, '--global-base=1024'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ out, err = proc.communicate()
+ assert proc.returncode == 0, err
+
print '\n[ checking example testcases... ]\n'
subprocess.check_call(['g++', '-std=c++11', os.path.join('test', 'example', 'find_div0s.cpp'), '-Isrc', '-g', '-lsupport', '-Llib/.'])