summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-02 17:38:50 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-02 17:38:50 -0800
commit04f43409abbebd9d3d07f1e38037ba47e6906fa7 (patch)
tree07be486ddf418cd70428a698022eb59a106687d8 /check.py
parent2510ac0df0e68cedfdff4e16224413f86a45e076 (diff)
downloadbinaryen-04f43409abbebd9d3d07f1e38037ba47e6906fa7.tar.gz
binaryen-04f43409abbebd9d3d07f1e38037ba47e6906fa7.tar.bz2
binaryen-04f43409abbebd9d3d07f1e38037ba47e6906fa7.zip
add optional arguments to check.py
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/check.py b/check.py
index ade77f0af..7ec0d6343 100755
--- a/check.py
+++ b/check.py
@@ -90,7 +90,12 @@ for c in tests:
print ' (no post)'
for which in ['normal', 'wasm']:
print '......', which
- proc = subprocess.Popen(['nodejs', 'a.' + which + '.js'], stdout=subprocess.PIPE)
+ try:
+ args = json.loads(open(os.path.join('test', base + '.args')).read())
+ except:
+ args = []
+ print ' (no args)'
+ proc = subprocess.Popen(['nodejs', 'a.' + which + '.js'] + args, stdout=subprocess.PIPE)
out, err = proc.communicate()
assert proc.returncode == 0
if out.strip() != expected.strip():