Index: tools/test.py |
diff --git a/tools/test.py b/tools/test.py |
index 3bc94b66163aae0367f8ba1f8da0808b56f2df14..676bd5753bd07e2a8bb97340035f272d4c2f3f48 100755 |
--- a/tools/test.py |
+++ b/tools/test.py |
@@ -1202,6 +1202,9 @@ def BuildOptions(): |
result.add_option("--nostress", |
help="Don't run crankshaft --always-opt --stress-op test", |
default=False, action="store_true") |
+ result.add_option("--crankshaft", |
+ help="Run with the --crankshaft flag", |
+ default=False, action="store_true") |
result.add_option("--shard-count", |
help="Split testsuites into this number of shards", |
default=1, type="int") |
@@ -1242,6 +1245,13 @@ def ProcessOptions(options): |
global VARIANT_FLAGS |
if options.stress_only: |
VARIANT_FLAGS = [['--stress-opt', '--always-opt']] |
+ if options.nostress: |
+ VARIANT_FLAGS = [[],['--nocrankshaft']] |
+ if options.crankshaft: |
+ if options.special_command: |
+ options.special_command += " --crankshaft" |
+ else: |
+ options.special_command = "@--crankshaft" |
if options.noprof: |
options.scons_flags.append("prof=off") |
options.scons_flags.append("profilingsupport=off") |
@@ -1406,7 +1416,8 @@ def Main(): |
'mode': mode, |
'system': utils.GuessOS(), |
'arch': options.arch, |
- 'simulator': options.simulator |
+ 'simulator': options.simulator, |
+ 'crankshaft': options.crankshaft |
} |
test_list = root.ListTests([], path, context, mode, []) |
unclassified_tests += test_list |