summaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-01-26 15:11:43 -0800
committerGitHub <noreply@github.com>2017-01-26 15:11:43 -0800
commit64284970344ce5463adada38e348230256b31226 (patch)
treef74de35407d5e793573b7d4301f3f9df8578fd78 /scripts/test
parent8bcdfb20d73c931529a458fb0dd3078724c38315 (diff)
downloadbinaryen-64284970344ce5463adada38e348230256b31226.tar.gz
binaryen-64284970344ce5463adada38e348230256b31226.tar.bz2
binaryen-64284970344ce5463adada38e348230256b31226.zip
Read/Write Abstraction (#889)
* Added ModuleReader/Writer classes that support text and binary I/O * Use them in wasm-opt and asm2wasm
Diffstat (limited to 'scripts/test')
-rw-r--r--scripts/test/shared.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/test/shared.py b/scripts/test/shared.py
index 5aff20091..d899cc1de 100644
--- a/scripts/test/shared.py
+++ b/scripts/test/shared.py
@@ -389,18 +389,18 @@ def minify_check(wast, verify_final_result=True):
print ' ', ' '.join(cmd)
subprocess.check_call(
WASM_OPT + [wast, '--print-minified'],
- stdout=open('a.wasm', 'w'), stderr=subprocess.PIPE)
- assert os.path.exists('a.wasm')
+ stdout=open('a.wast', 'w'), stderr=subprocess.PIPE)
+ assert os.path.exists('a.wast')
subprocess.check_call(
- WASM_OPT + ['a.wasm', '--print-minified'],
- stdout=open('b.wasm', 'w'), stderr=subprocess.PIPE)
- assert os.path.exists('b.wasm')
+ WASM_OPT + ['a.wast', '--print-minified'],
+ stdout=open('b.wast', 'w'), stderr=subprocess.PIPE)
+ assert os.path.exists('b.wast')
if verify_final_result:
- expected = open('a.wasm').read()
- actual = open('b.wasm').read()
+ expected = open('a.wast').read()
+ actual = open('b.wast').read()
if actual != expected:
fail(actual, expected)
- if os.path.exists('a.wasm'):
- os.unlink('a.wasm')
- if os.path.exists('b.wasm'):
- os.unlink('b.wasm')
+ if os.path.exists('a.wast'):
+ os.unlink('a.wast')
+ if os.path.exists('b.wast'):
+ os.unlink('b.wast')