diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-04 11:30:06 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-04 11:30:37 -0800 |
commit | 1f8e4a4da473f6a76e48c3ffb6f0aec2d3c1b5a3 (patch) | |
tree | 393589648dc3b1c87eff27b655067278fffcbb70 | |
parent | 9a92d6fd774221d66f5d6fdab17b517180535a6b (diff) | |
download | binaryen-1f8e4a4da473f6a76e48c3ffb6f0aec2d3c1b5a3.tar.gz binaryen-1f8e4a4da473f6a76e48c3ffb6f0aec2d3c1b5a3.tar.bz2 binaryen-1f8e4a4da473f6a76e48c3ffb6f0aec2d3c1b5a3.zip |
add a test for s2wasm options
-rwxr-xr-x | check.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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/.']) |