diff options
-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: |