Index: tools/run-tests.py |
diff --git a/tools/run-tests.py b/tools/run-tests.py |
index 52f5c7f32aa763647eabfce371764265ea06ae93..de45934a218dfee766a739735edf1de5b4a592f3 100755 |
--- a/tools/run-tests.py |
+++ b/tools/run-tests.py |
@@ -81,14 +81,16 @@ SUPPORTED_ARCHS = ["android_arm", |
"mipsel", |
"nacl_ia32", |
"nacl_x64", |
- "x64"] |
+ "x64", |
+ "a64"] |
# Double the timeout for these: |
SLOW_ARCHS = ["android_arm", |
"android_ia32", |
"arm", |
"mipsel", |
"nacl_ia32", |
- "nacl_x64"] |
+ "nacl_x64", |
+ "a64"] |
def BuildOptions(): |
@@ -172,6 +174,10 @@ def BuildOptions(): |
result.add_option("--shell", help="DEPRECATED! use --shell-dir", default="") |
result.add_option("--shell-dir", help="Directory containing executables", |
default="") |
+ result.add_option("--dont-skip-slow-simulator-tests", |
+ help="Don't skip more slow tests when using a simulator.", |
+ default=False, action="store_true", |
+ dest="dont_skip_simulator_slow_tests") |
result.add_option("--stress-only", |
help="Only run tests with --always-opt --stress-opt", |
default=False, action="store_true") |
@@ -387,6 +393,9 @@ def Execute(arch, mode, args, options, suites, workspace): |
options.extra_flags, |
options.no_i18n) |
+ # TODO(all): Combine "simulator" and "simulator_run". |
+ simulator_run = not options.dont_skip_simulator_slow_tests and \ |
+ arch in ['a64', 'arm', 'mips'] and ARCH_GUESS and arch != ARCH_GUESS |
# Find available test suites and read test cases from them. |
variables = { |
"arch": arch, |
@@ -396,6 +405,7 @@ def Execute(arch, mode, args, options, suites, workspace): |
"isolates": options.isolates, |
"mode": mode, |
"no_i18n": options.no_i18n, |
+ "simulator_run": simulator_run, |
"simulator": utils.UseSimulator(arch), |
"system": utils.GuessOS(), |
} |