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

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

Issue 1001613002: Use path in name for test262-es6 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove method override Created 5 years, 9 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') | no next file » | 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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]
57 self.harness += [os.path.join(self.root, "harness-adapt.js")] 57 self.harness += [os.path.join(self.root, "harness-adapt.js")]
58 self.ParseTestRecord = None 58 self.ParseTestRecord = None
59 59
60 def CommonTestName(self, testcase):
61 return testcase.path.split(os.path.sep)[-1]
62
63 def ListTests(self, context): 60 def ListTests(self, context):
64 tests = [] 61 tests = []
65 for dirname, dirs, files in os.walk(self.testroot): 62 for dirname, dirs, files in os.walk(self.testroot):
66 for dotted in [x for x in dirs if x.startswith(".")]: 63 for dotted in [x for x in dirs if x.startswith(".")]:
67 dirs.remove(dotted) 64 dirs.remove(dotted)
68 if context.noi18n and "intl402" in dirs: 65 if context.noi18n and "intl402" in dirs:
69 dirs.remove("intl402") 66 dirs.remove("intl402")
70 dirs.sort() 67 dirs.sort()
71 files.sort() 68 files.sort()
72 for filename in files: 69 for filename in files:
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 # Magic incantation to allow longer path names on Windows. 154 # Magic incantation to allow longer path names on Windows.
158 archive.extractall(u"\\\\?\\%s" % self.root) 155 archive.extractall(u"\\\\?\\%s" % self.root)
159 else: 156 else:
160 archive.extractall(self.root) 157 archive.extractall(self.root)
161 os.rename(os.path.join(self.root, "tc39-test262-%s" % revision), 158 os.rename(os.path.join(self.root, "tc39-test262-%s" % revision),
162 directory_name) 159 directory_name)
163 160
164 161
165 def GetSuite(name, root): 162 def GetSuite(name, root):
166 return Test262TestSuite(name, root) 163 return Test262TestSuite(name, root)
OLDNEW
« no previous file with comments | « test/test262-es6/test262-es6.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698