diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-05-13 17:42:41 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-05-13 17:42:41 -0700 |
commit | 63bac0a2ec0b22feadf9652a2292ce66ea6174d7 (patch) | |
tree | e06042570d2b061fd7d1d844a34850a9154284e6 /auto_update_tests.py | |
parent | 311ce634f772886939af75524dee52b955f78a59 (diff) | |
parent | ee5a2454b7b49b645383754b19f4dfc93ef35014 (diff) | |
download | binaryen-63bac0a2ec0b22feadf9652a2292ce66ea6174d7.tar.gz binaryen-63bac0a2ec0b22feadf9652a2292ce66ea6174d7.tar.bz2 binaryen-63bac0a2ec0b22feadf9652a2292ce66ea6174d7.zip |
Merge pull request #499 from WebAssembly/validation-fixes
Validation fixes
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-x | auto_update_tests.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py index 5fa106747..378f511cc 100755 --- a/auto_update_tests.py +++ b/auto_update_tests.py @@ -17,13 +17,6 @@ for asm in sorted(os.listdir('test')): actual, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() open(os.path.join('test', wasm), 'w').write(actual) -for wasm in sorted(os.listdir('test')): - if wasm.endswith('.wast') and os.path.basename(wasm) not in ['kitchen_sink.wast']: # i64s in kitchen_sink - print '..', wasm - asm = wasm.replace('.wast', '.2asm.js') - actual, err = subprocess.Popen([os.path.join('bin', 'wasm2asm'), os.path.join('test', wasm)], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() - open(os.path.join('test', asm), 'w').write(actual) - for dot_s_dir in ['dot_s', 'llvm_autogenerated']: for s in sorted(os.listdir(os.path.join('test', dot_s_dir))): if not s.endswith('.s'): continue @@ -111,7 +104,7 @@ for t in sorted(os.listdir(os.path.join('test', 'example'))): print ' '.join(extra) subprocess.check_call(extra) # Link against the binaryen C library DSO, using an executable-relative rpath - cmd = ['example.o', '-lbinaryen-c'] + cmd + ['-Wl,-rpath=$ORIGIN/../lib'] + cmd = ['example.o', '-lbinaryen'] + cmd + ['-Wl,-rpath=$ORIGIN/../lib'] else: continue if os.environ.get('COMPILER_FLAGS'): @@ -126,5 +119,4 @@ for t in sorted(os.listdir(os.path.join('test', 'example'))): finally: os.remove(output_file) - print '\n[ success! ]' |