summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/check.py b/check.py
index c4bce02aa..f85de087f 100755
--- a/check.py
+++ b/check.py
@@ -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: