Index: tools/testrunner/local/variants.py |
diff --git a/tools/testrunner/local/variants.py b/tools/testrunner/local/variants.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bb029978a232b7c6e7b0afa314899560b540e557 |
--- /dev/null |
+++ b/tools/testrunner/local/variants.py |
@@ -0,0 +1,30 @@ |
+# Copyright 2016 the V8 project authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+# Use this to run several variants of the tests. |
+ALL_VARIANT_FLAGS = { |
+ "default": [[]], |
+ "stress": [["--stress-opt", "--always-opt"]], |
+ "turbofan": [["--turbo"]], |
+ "turbofan_opt": [["--turbo", "--always-opt"]], |
+ "nocrankshaft": [["--nocrankshaft"]], |
+ "ignition": [["--ignition"]], |
+ "ignition_turbofan": [["--ignition-staging", "--turbo"]], |
+ "preparser": [["--min-preparse-length=0"]], |
+} |
+ |
+# FAST_VARIANTS implies no --always-opt. |
+FAST_VARIANT_FLAGS = { |
+ "default": [[]], |
+ "stress": [["--stress-opt"]], |
+ "turbofan": [["--turbo"]], |
+ "nocrankshaft": [["--nocrankshaft"]], |
+ "ignition": [["--ignition"]], |
+ "ignition_turbofan": [["--ignition-staging", "--turbo"]], |
+ "preparser": [["--min-preparse-length=0"]], |
+} |
+ |
+ALL_VARIANTS = set(["default", "stress", "turbofan", "turbofan_opt", |
+ "nocrankshaft", "ignition", "ignition_turbofan", |
+ "preparser"]) |