Commit 6ff9516b authored by rmcilroy's avatar rmcilroy Committed by Commit bot

[Interpreter]: Add ignition variant to test runner.

Adds an ignition variant to the test runner and adds support to test262 for
filtering such that only test scripts (not the test harness) get run by
the interpreter.

BUG=v8:4280
LOG=N

Review URL: https://codereview.chromium.org/1379093002

Cr-Commit-Position: refs/heads/master@{#31123}
parent 35d2028d
......@@ -107,6 +107,7 @@ class Test262TestSuite(testsuite.TestSuite):
self.harness = [os.path.join(self.harnesspath, f)
for f in TEST_262_HARNESS_FILES]
self.harness += [os.path.join(self.root, "harness-adapt.js")]
self.ignition_filter = "--ignition-filter=" + self.testroot + "/*"
self.ParseTestRecord = None
def ListTests(self, context):
......@@ -128,7 +129,12 @@ class Test262TestSuite(testsuite.TestSuite):
return tests
def GetFlagsForTestCase(self, testcase, context):
return (testcase.flags + context.mode_flags + self.harness +
# TODO(rmcilroy) Remove ignition filter modification once ignition can
# support the test262 test harness code.
flags = [ self.ignition_filter if "ignition-filter" in flag else flag
for flag in testcase.flags]
return (flags + context.mode_flags + self.harness +
self.GetIncludesForTest(testcase) + ["--harmony"] +
[os.path.join(self.testroot, testcase.path + ".js")])
......
......@@ -40,6 +40,7 @@ ALL_VARIANT_FLAGS = {
"stress": [["--stress-opt", "--always-opt"]],
"turbofan": [["--turbo", "--always-opt"]],
"nocrankshaft": [["--nocrankshaft"]],
"ignition": [["--ignition", "--ignition-filter=*"]],
}
# FAST_VARIANTS implies no --always-opt.
......@@ -48,9 +49,11 @@ FAST_VARIANT_FLAGS = {
"stress": [["--stress-opt"]],
"turbofan": [["--turbo"]],
"nocrankshaft": [["--nocrankshaft"]],
"ignition": [["--ignition", "--ignition-filter=*"]],
}
ALL_VARIANTS = set(["default", "stress", "turbofan", "nocrankshaft"])
ALL_VARIANTS = set(["default", "stress", "turbofan", "nocrankshaft",
"ignition"])
FAST_VARIANTS = set(["default", "turbofan"])
STANDARD_VARIANT = set(["default"])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment