aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/tools/run-wasm-api-tests.py
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2019-08-01 08:38:30 +0200
committerMichaël Zasso <targos@protonmail.com>2019-08-01 12:53:56 +0200
commit2dcc3665abf57c3607cebffdeeca062f5894885d (patch)
tree4f560748132edcfb4c22d6f967a7e80d23d7ea2c /deps/v8/tools/run-wasm-api-tests.py
parent1ee47d550c6de132f06110aa13eceb7551d643b3 (diff)
downloadandroid-node-v8-2dcc3665abf57c3607cebffdeeca062f5894885d.tar.gz
android-node-v8-2dcc3665abf57c3607cebffdeeca062f5894885d.tar.bz2
android-node-v8-2dcc3665abf57c3607cebffdeeca062f5894885d.zip
deps: update V8 to 7.6.303.28
PR-URL: https://github.com/nodejs/node/pull/28016 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Diffstat (limited to 'deps/v8/tools/run-wasm-api-tests.py')
-rwxr-xr-x[-rw-r--r--]deps/v8/tools/run-wasm-api-tests.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/deps/v8/tools/run-wasm-api-tests.py b/deps/v8/tools/run-wasm-api-tests.py
index 46e13d3255..79f53cb927 100644..100755
--- a/deps/v8/tools/run-wasm-api-tests.py
+++ b/deps/v8/tools/run-wasm-api-tests.py
@@ -30,7 +30,7 @@ import shutil
import subprocess
import sys
-CFLAGS = "-DDEBUG -Wall -Werror -O0 -fsanitize=address"
+CFLAGS = "-DDEBUG -Wall -Werror -O0 -ggdb -fsanitize=address"
CHECKOUT_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
WASM_PATH = os.path.join(CHECKOUT_PATH, "third_party", "wasm-api")
@@ -87,12 +87,12 @@ class Runner(object):
dst_wasm_file = self.dst_file_basename + ".wasm"
shutil.copyfile(src_wasm_file, dst_wasm_file)
- def _Error(self, step, lang, compiler):
+ def _Error(self, step, lang, compiler, code):
print("Error: %s failed. To repro: tools/run-wasm-api-tests.py "
"%s %s %s %s %s" %
(step, self.outdir, self.tempdir, self.name, lang,
compiler["name"].lower()))
-
+ return code
def CompileAndRun(self, compiler, language):
print("==== %s %s/%s ====" %
@@ -104,15 +104,15 @@ class Runner(object):
# Compile.
c = _Call([compiler[lang], "-c", language["cflags"], CFLAGS,
"-I", WASM_PATH, "-o", obj_file, src_file])
- if c: return self._Error("compilation", lang, compiler)
+ if c: return self._Error("compilation", lang, compiler, c)
# Link.
c = _Call([compiler["cc"], CFLAGS, compiler["ldflags"], obj_file,
"-o", exe_file, self.lib_file, "-ldl -pthread"])
- if c: return self._Error("linking", lang, compiler)
+ if c: return self._Error("linking", lang, compiler, c)
# Execute.
exe_file = "./%s-%s" % (self.name, lang)
c = _Call(["cd", self.tempdir, ";", exe_file])
- if c: return self._Error("execution", lang, compiler)
+ if c: return self._Error("execution", lang, compiler, c)
return 0
def Main(args):
@@ -157,6 +157,10 @@ def Main(args):
for language in languages:
c = runner.CompileAndRun(compiler, language)
if c: result = c
+ if result:
+ print("\nFinished with errors.")
+ else:
+ print("\nFinished successfully.")
return result
if __name__ == "__main__":