summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-01-15 19:45:55 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-01-17 11:57:09 -0800
commit19fa7c8e14844f7a25c2ef143cb89464d639c8a9 (patch)
tree808cc913090b2cae8e393c6c070fde8a66166458 /check.py
parent455eff4d01b5b9502ef66a220bacb58e77ed1fe0 (diff)
downloadbinaryen-19fa7c8e14844f7a25c2ef143cb89464d639c8a9.tar.gz
binaryen-19fa7c8e14844f7a25c2ef143cb89464d639c8a9.tar.bz2
binaryen-19fa7c8e14844f7a25c2ef143cb89464d639c8a9.zip
make sure a.wasm.js is emitted by the backend tests
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/check.py b/check.py
index c87b94651..eb75b4585 100755
--- a/check.py
+++ b/check.py
@@ -369,6 +369,7 @@ try:
expected = open(os.path.join('test', 'wasm_backend', base + '.txt')).read()
command = [os.path.join('test', 'emscripten', 'emcc'), '-o', 'a.wasm.js', '-s', 'BINARYEN="' + os.getcwd() + '"', os.path.join('test', 'wasm_backend', c), '-O1', '-s', 'ONLY_MY_CODE=1']
print '....' + ' '.join(command)
+ if os.path.exists('a.wasm.js'): os.unlink('a.wasm.js')
subprocess.check_call(command)
if has_node:
print ' (check in node)'