Commit d869f4a4 authored by arv's avatar arv Committed by Commit bot

Update Test262 to 5/30

This updates the test runner to run all tests in both sloppy
and strict mode.

It also marks the test in the status file as failing in
sloppy mode even if all it does is marking the test as
[PASS, FAIL]. A future CL will have to validate that the
tests pass and fail in the correct mode.

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

Cr-Commit-Position: refs/heads/master@{#28879}
parent b75bf6cd
......@@ -4,13 +4,13 @@ tests from
https://github.com/tc39/test262
at hash 43acf61 (2015/03/31 revision) as 'data' in this directory. Using later
at hash 6883892 (2015/05/30 revision) as 'data' in this directory. Using later
version may be possible but the tests are only known to pass (and indeed run)
with that revision.
git clone https://github.com/tc39/test262 data
cd data
git checkout 43acf61
git checkout 6883892
If you do update to a newer revision you may have to change the test
harness adapter code since it uses internal functionality from the
......
This diff is collapsed.
......@@ -37,8 +37,8 @@ from testrunner.local import testsuite
from testrunner.local import utils
from testrunner.objects import testcase
TEST_262_ARCHIVE_REVISION = "43acf61" # This is the 2015-03-31 revision.
TEST_262_ARCHIVE_MD5 = "a77a0352a0462be98e50522a15b7a3c4"
TEST_262_ARCHIVE_REVISION = "6883892" # This is the 2015-05-30 revision.
TEST_262_ARCHIVE_MD5 = "527d617024c554bfa46ec19853ae4fc0"
TEST_262_URL = "https://github.com/tc39/test262/tarball/%s"
TEST_262_HARNESS_FILES = ["sta.js", "assert.js"]
......@@ -79,6 +79,16 @@ class Test262TestSuite(testsuite.TestSuite):
self.GetIncludesForTest(testcase) + ["--harmony"] +
[os.path.join(self.testroot, testcase.path + ".js")])
def VariantFlags(self, testcase, default_flags):
flags = super(Test262TestSuite, self).VariantFlags(testcase, default_flags)
test_record = self.GetTestRecord(testcase)
if "noStrict" in test_record:
return flags
strict_flags = [f + ["--use-strict"] for f in flags]
if "onlyStrict" in test_record:
return strict_flags
return flags + strict_flags
def LoadParseTestRecord(self):
if not self.ParseTestRecord:
root = os.path.join(self.root, *TEST_262_TOOLS_PATH)
......
......@@ -57,7 +57,8 @@ for var in ["debug", "release", "big", "little",
"android_arm", "android_arm64", "android_ia32", "android_x87",
"android_x64", "arm", "arm64", "ia32", "mips", "mipsel",
"mips64el", "x64", "x87", "nacl_ia32", "nacl_x64", "ppc", "ppc64",
"macos", "windows", "linux", "aix"]:
"macos", "windows", "linux", "aix",
"strict", "sloppy"]:
VARIABLES[var] = var
......
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