Index: tools/test.py |
=================================================================== |
--- tools/test.py (revision 5956) |
+++ tools/test.py (working copy) |
@@ -729,7 +729,10 @@ |
if self.name in env: return ListSet([env[self.name]]) |
else: return Nothing() |
+ def Evaluate(self, env, defs): |
+ return env[self.name] |
+ |
class Outcome(Expression): |
def __init__(self, name): |
@@ -1175,6 +1178,9 @@ |
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") |
return result |
@@ -1209,6 +1215,11 @@ |
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" |
return True |
@@ -1359,7 +1370,8 @@ |
'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 |