diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-02 17:38:50 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-02 17:38:50 -0800 |
commit | 04f43409abbebd9d3d07f1e38037ba47e6906fa7 (patch) | |
tree | 07be486ddf418cd70428a698022eb59a106687d8 /check.py | |
parent | 2510ac0df0e68cedfdff4e16224413f86a45e076 (diff) | |
download | binaryen-04f43409abbebd9d3d07f1e38037ba47e6906fa7.tar.gz binaryen-04f43409abbebd9d3d07f1e38037ba47e6906fa7.tar.bz2 binaryen-04f43409abbebd9d3d07f1e38037ba47e6906fa7.zip |
add optional arguments to check.py
Diffstat (limited to 'check.py')
-rwxr-xr-x | check.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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(): |