summaryrefslogtreecommitdiff
path: root/deps/v8/tools/run-tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/tools/run-tests.py')
-rwxr-xr-xdeps/v8/tools/run-tests.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/deps/v8/tools/run-tests.py b/deps/v8/tools/run-tests.py
index cc1d480b4..5cf49049f 100755
--- a/deps/v8/tools/run-tests.py
+++ b/deps/v8/tools/run-tests.py
@@ -34,6 +34,7 @@ import optparse
import os
from os.path import join
import platform
+import random
import shlex
import subprocess
import sys
@@ -49,7 +50,7 @@ from testrunner.objects import context
ARCH_GUESS = utils.DefaultArch()
-DEFAULT_TESTS = ["mjsunit", "cctest", "message", "preparser"]
+DEFAULT_TESTS = ["mjsunit", "fuzz-natives", "cctest", "message", "preparser"]
TIMEOUT_DEFAULT = 60
TIMEOUT_SCALEFACTOR = {"debug" : 4,
"release" : 1 }
@@ -79,6 +80,7 @@ SUPPORTED_ARCHS = ["android_arm",
"android_ia32",
"arm",
"ia32",
+ "mips",
"mipsel",
"nacl_ia32",
"nacl_x64",
@@ -89,6 +91,7 @@ SLOW_ARCHS = ["android_arm",
"android_arm64",
"android_ia32",
"arm",
+ "mips",
"mipsel",
"nacl_ia32",
"nacl_x64",
@@ -149,6 +152,9 @@ def BuildOptions():
result.add_option("--no-presubmit", "--nopresubmit",
help='Skip presubmit checks',
default=False, dest="no_presubmit", action="store_true")
+ result.add_option("--no-snap", "--nosnap",
+ help='Test a build compiled without snapshot.',
+ default=False, dest="no_snap", action="store_true")
result.add_option("--no-stress", "--nostress",
help="Don't run crankshaft --always-opt --stress-op test",
default=False, dest="no_stress", action="store_true")
@@ -197,6 +203,8 @@ def BuildOptions():
result.add_option("--junittestsuite",
help="The testsuite name in the JUnit output file",
default="v8tests")
+ result.add_option("--random-seed", default=0, dest="random_seed",
+ help="Default seed for initializing random generator")
return result
@@ -247,6 +255,9 @@ def ProcessOptions(options):
if options.j == 0:
options.j = multiprocessing.cpu_count()
+ while options.random_seed == 0:
+ options.random_seed = random.SystemRandom().randint(-2147483648, 2147483647)
+
def excl(*args):
"""Returns true if zero or one of multiple arguments are true."""
return reduce(lambda x, y: x + y, args) <= 1
@@ -393,7 +404,8 @@ def Execute(arch, mode, args, options, suites, workspace):
timeout, options.isolates,
options.command_prefix,
options.extra_flags,
- options.no_i18n)
+ options.no_i18n,
+ options.random_seed)
# TODO(all): Combine "simulator" and "simulator_run".
simulator_run = not options.dont_skip_simulator_slow_tests and \
@@ -407,6 +419,7 @@ def Execute(arch, mode, args, options, suites, workspace):
"isolates": options.isolates,
"mode": mode,
"no_i18n": options.no_i18n,
+ "no_snap": options.no_snap,
"simulator_run": simulator_run,
"simulator": utils.UseSimulator(arch),
"system": utils.GuessOS(),