Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: test/test262-es6/testcfg.py

Issue 1025043002: [es6] Update test262 tests (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: git rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/test262-es6/test262-es6.status ('k') | tools/testrunner/local/statusfile.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 19 matching lines...) Expand all
30 import os 30 import os
31 import shutil 31 import shutil
32 import sys 32 import sys
33 import tarfile 33 import tarfile
34 import imp 34 import imp
35 35
36 from testrunner.local import testsuite 36 from testrunner.local import testsuite
37 from testrunner.local import utils 37 from testrunner.local import utils
38 from testrunner.objects import testcase 38 from testrunner.objects import testcase
39 39
40 TEST_262_ARCHIVE_REVISION = "61113db" # This is the 2014-10-23 revision. 40 TEST_262_ARCHIVE_REVISION = "d24fd10" # This is the 2015-03-11 revision.
41 TEST_262_ARCHIVE_MD5 = "261e69b4a97a4bfc18225cf3938daf50" 41 TEST_262_ARCHIVE_MD5 = "96230f61d6e5dfac5c0e69f3acd74dee"
42 TEST_262_URL = "https://github.com/tc39/test262/tarball/%s" 42 TEST_262_URL = "https://github.com/tc39/test262/tarball/%s"
43 TEST_262_HARNESS_FILES = ["sta.js"] 43 TEST_262_HARNESS_FILES = ["sta.js", "assert.js"]
44 44
45 TEST_262_SUITE_PATH = ["data", "test", "suite"] 45 TEST_262_SUITE_PATH = ["data", "test"]
46 TEST_262_HARNESS_PATH = ["data", "test", "harness"] 46 TEST_262_HARNESS_PATH = ["data", "harness"]
47 TEST_262_TOOLS_PATH = ["data", "tools", "packaging"] 47 TEST_262_TOOLS_PATH = ["data", "tools", "packaging"]
48 48
49 class Test262TestSuite(testsuite.TestSuite): 49 class Test262TestSuite(testsuite.TestSuite):
50 50
51 def __init__(self, name, root): 51 def __init__(self, name, root):
52 super(Test262TestSuite, self).__init__(name, root) 52 super(Test262TestSuite, self).__init__(name, root)
53 self.testroot = os.path.join(self.root, *TEST_262_SUITE_PATH) 53 self.testroot = os.path.join(self.root, *TEST_262_SUITE_PATH)
54 self.harnesspath = os.path.join(self.root, *TEST_262_HARNESS_PATH) 54 self.harnesspath = os.path.join(self.root, *TEST_262_HARNESS_PATH)
55 self.harness = [os.path.join(self.harnesspath, f) 55 self.harness = [os.path.join(self.harnesspath, f)
56 for f in TEST_262_HARNESS_FILES] 56 for f in TEST_262_HARNESS_FILES]
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 # Magic incantation to allow longer path names on Windows. 154 # Magic incantation to allow longer path names on Windows.
155 archive.extractall(u"\\\\?\\%s" % self.root) 155 archive.extractall(u"\\\\?\\%s" % self.root)
156 else: 156 else:
157 archive.extractall(self.root) 157 archive.extractall(self.root)
158 os.rename(os.path.join(self.root, "tc39-test262-%s" % revision), 158 os.rename(os.path.join(self.root, "tc39-test262-%s" % revision),
159 directory_name) 159 directory_name)
160 160
161 161
162 def GetSuite(name, root): 162 def GetSuite(name, root):
163 return Test262TestSuite(name, root) 163 return Test262TestSuite(name, root)
OLDNEW
« no previous file with comments | « test/test262-es6/test262-es6.status ('k') | tools/testrunner/local/statusfile.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698