diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-12 18:04:56 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-12 18:04:56 -0800 |
commit | f80d7b23b6b9d3a335e83bf6d1cd8cc9c0fbdd25 (patch) | |
tree | 04ce5979a50078db686f3633fea9b97493995937 | |
parent | 674c2f10a2cdb6547fc1592c2e9cb407f8fd40e6 (diff) | |
download | binaryen-f80d7b23b6b9d3a335e83bf6d1cd8cc9c0fbdd25.tar.gz binaryen-f80d7b23b6b9d3a335e83bf6d1cd8cc9c0fbdd25.tar.bz2 binaryen-f80d7b23b6b9d3a335e83bf6d1cd8cc9c0fbdd25.zip |
reorder check
-rwxr-xr-x | check.py | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -77,14 +77,6 @@ for t in tests: if actual != expected: fail(actual, expected) -print '\n[ checking example testcases... ]\n' - -subprocess.check_call(['g++', '-std=c++11', os.path.join('test', 'example', 'find_div0s.cpp'), '-Isrc', '-g']) -actual = subprocess.Popen(['./a.out'], stdout=subprocess.PIPE).communicate()[0] -expected = open(os.path.join('test', 'example', 'find_div0s.txt')).read() -if actual != expected: - fail(actual, expected) - print '\n[ checking binaryen-shell spec testcases... ]\n' if len(requested) == 0: @@ -120,6 +112,14 @@ for t in spec_tests: if actual != expected: fail(actual, expected) +print '\n[ checking example testcases... ]\n' + +subprocess.check_call(['g++', '-std=c++11', os.path.join('test', 'example', 'find_div0s.cpp'), '-Isrc', '-g']) +actual = subprocess.Popen(['./a.out'], stdout=subprocess.PIPE).communicate()[0] +expected = open(os.path.join('test', 'example', 'find_div0s.txt')).read() +if actual != expected: + fail(actual, expected) + print '\n[ checking wasm.js polyfill testcases... (need both emcc and nodejs in your path) ]\n' for c in tests: |