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

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

Issue 11416008: Unbreak waterfall after r12968. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 def ListTests(self, current_path, path, mode, variant_flags): 173 def ListTests(self, current_path, path, mode, variant_flags):
174 testroot = join(self.root, 'data', 'test', 'suite') 174 testroot = join(self.root, 'data', 'test', 'suite')
175 harness = [join(self.root, 'data', 'test', 'harness', f) 175 harness = [join(self.root, 'data', 'test', 'harness', f)
176 for f in TEST_262_HARNESS] 176 for f in TEST_262_HARNESS]
177 harness += [join(self.root, 'harness-adapt.js')] 177 harness += [join(self.root, 'harness-adapt.js')]
178 tests = [] 178 tests = []
179 for root, dirs, files in os.walk(testroot): 179 for root, dirs, files in os.walk(testroot):
180 for dotted in [x for x in dirs if x.startswith('.')]: 180 for dotted in [x for x in dirs if x.startswith('.')]:
181 dirs.remove(dotted) 181 dirs.remove(dotted)
182 for skipped in [x for x in dirs if x in TEST_262_SKIP]:
183 dirs.remove(skipped)
182 dirs.sort() 184 dirs.sort()
183 root_path = root[len(self.root):].split(os.path.sep) 185 root_path = root[len(self.root):].split(os.path.sep)
184 root_path = current_path + [x for x in root_path if x] 186 root_path = current_path + [x for x in root_path if x]
185 files.sort() 187 files.sort()
186 for file in files: 188 for file in files:
187 if file.endswith('.js'): 189 if file.endswith('.js'):
188 test_path = ['test262', file[:-3]] 190 test_path = ['test262', file[:-3]]
189 if self.Contains(path, test_path): 191 if self.Contains(path, test_path):
190 test = Test262TestCase(join(root, file), test_path, self.context, 192 test = Test262TestCase(join(root, file), test_path, self.context,
191 self.root, mode, harness) 193 self.root, mode, harness)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 return ['d8'] 226 return ['d8']
225 227
226 def GetTestStatus(self, sections, defs): 228 def GetTestStatus(self, sections, defs):
227 status_file = join(self.root, 'test262.status') 229 status_file = join(self.root, 'test262.status')
228 if exists(status_file): 230 if exists(status_file):
229 test.ReadConfigurationInto(status_file, sections, defs) 231 test.ReadConfigurationInto(status_file, sections, defs)
230 232
231 233
232 def GetConfiguration(context, root): 234 def GetConfiguration(context, root):
233 return Test262TestConfiguration(context, root) 235 return Test262TestConfiguration(context, root)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698