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

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

Issue 1349163002: Revert of [test] Fix cctest path separators on Windows (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/testcfg.py ('k') | tools/testrunner/local/testsuite.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 2013 the V8 project authors. All rights reserved. 1 # Copyright 2013 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 for dirname, dirs, files in os.walk(self.root): 48 for dirname, dirs, files in os.walk(self.root):
49 for dotted in [x for x in dirs if x.startswith('.')]: 49 for dotted in [x for x in dirs if x.startswith('.')]:
50 dirs.remove(dotted) 50 dirs.remove(dotted)
51 if 'resources' in dirs: 51 if 'resources' in dirs:
52 dirs.remove('resources') 52 dirs.remove('resources')
53 53
54 dirs.sort() 54 dirs.sort()
55 files.sort() 55 files.sort()
56 for filename in files: 56 for filename in files:
57 if filename.endswith(".js"): 57 if filename.endswith(".js"):
58 fullpath = os.path.join(dirname, filename) 58 testname = os.path.join(dirname[len(self.root) + 1:], filename[:-3])
59 relpath = fullpath[len(self.root) + 1 : -3]
60 testname = relpath.replace(os.path.sep, "/")
61 test = testcase.TestCase(self, testname) 59 test = testcase.TestCase(self, testname)
62 tests.append(test) 60 tests.append(test)
63 return tests 61 return tests
64 62
65 def GetFlagsForTestCase(self, testcase, context): 63 def GetFlagsForTestCase(self, testcase, context):
66 source = self.GetSourceForTest(testcase) 64 source = self.GetSourceForTest(testcase)
67 flags = [] + context.mode_flags 65 flags = [] + context.mode_flags
68 flags_match = re.findall(FLAGS_PATTERN, source) 66 flags_match = re.findall(FLAGS_PATTERN, source)
69 for match in flags_match: 67 for match in flags_match:
70 flags += match.strip().split() 68 flags += match.strip().split()
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 for act_iterator in ActBlockIterator(): 154 for act_iterator in ActBlockIterator():
157 for (expected, actual) in itertools.izip_longest( 155 for (expected, actual) in itertools.izip_longest(
158 ExpIterator(), act_iterator, fillvalue=''): 156 ExpIterator(), act_iterator, fillvalue=''):
159 if expected != actual: 157 if expected != actual:
160 return True 158 return True
161 return False 159 return False
162 160
163 161
164 def GetSuite(name, root): 162 def GetSuite(name, root):
165 return WebkitTestSuite(name, root) 163 return WebkitTestSuite(name, root)
OLDNEW
« no previous file with comments | « test/test262/testcfg.py ('k') | tools/testrunner/local/testsuite.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698