summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/emcc-tests.sh4
-rw-r--r--scripts/test/binaryenjs.py7
2 files changed, 4 insertions, 7 deletions
diff --git a/scripts/emcc-tests.sh b/scripts/emcc-tests.sh
index bea5760e6..691d67fa6 100755
--- a/scripts/emcc-tests.sh
+++ b/scripts/emcc-tests.sh
@@ -6,11 +6,11 @@ echo "emcc-tests: build:wasm"
emcmake cmake -DCMAKE_BUILD_TYPE=Release
emmake make -j4 binaryen_wasm
echo "emcc-tests: test:wasm"
-python3 -m scripts.test.binaryenjs wasm
+./check.py binaryenjs_wasm
echo "emcc-tests: done:wasm"
echo "emcc-tests: build:js"
emmake make -j4 binaryen_js
echo "emcc-tests: test:js"
-python3 -m scripts.test.binaryenjs js
+./check.py binaryenjs
echo "emcc-tests: done:js"
diff --git a/scripts/test/binaryenjs.py b/scripts/test/binaryenjs.py
index 645c2501a..c5974145d 100644
--- a/scripts/test/binaryenjs.py
+++ b/scripts/test/binaryenjs.py
@@ -21,14 +21,11 @@ from . import support
def do_test_binaryen_js_with(which):
if not (shared.MOZJS or shared.NODEJS):
- print('no vm to run binaryen.js tests')
- return
+ shared.fail_with_error('no vm to run binaryen.js tests')
node_has_wasm = shared.NODEJS and support.node_has_webassembly(shared.NODEJS)
-
if not os.path.exists(which):
- print('no ' + which + ' build to test')
- return
+ shared.fail_with_error('no ' + which + ' build to test')
print('\n[ checking binaryen.js testcases (' + which + ')... ]\n')