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

Side by Side Diff: test/test262/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-es6/testcfg.py ('k') | test/webkit/testcfg.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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 tests = [] 59 tests = []
60 for dirname, dirs, files in os.walk(self.testroot): 60 for dirname, dirs, files in os.walk(self.testroot):
61 for dotted in [x for x in dirs if x.startswith(".")]: 61 for dotted in [x for x in dirs if x.startswith(".")]:
62 dirs.remove(dotted) 62 dirs.remove(dotted)
63 if context.noi18n and "intl402" in dirs: 63 if context.noi18n and "intl402" in dirs:
64 dirs.remove("intl402") 64 dirs.remove("intl402")
65 dirs.sort() 65 dirs.sort()
66 files.sort() 66 files.sort()
67 for filename in files: 67 for filename in files:
68 if filename.endswith(".js"): 68 if filename.endswith(".js"):
69 fullpath = os.path.join(dirname, filename) 69 testname = os.path.join(dirname[len(self.testroot) + 1:],
70 relpath = fullpath[len(self.testroot) + 1 : -3] 70 filename[:-3])
71 testname = relpath.replace(os.path.sep, "/")
72 case = testcase.TestCase(self, testname) 71 case = testcase.TestCase(self, testname)
73 tests.append(case) 72 tests.append(case)
74 return tests 73 return tests
75 74
76 def GetFlagsForTestCase(self, testcase, context): 75 def GetFlagsForTestCase(self, testcase, context):
77 return (testcase.flags + context.mode_flags + self.harness + 76 return (testcase.flags + context.mode_flags + self.harness +
78 [os.path.join(self.testroot, testcase.path + ".js")]) 77 [os.path.join(self.testroot, testcase.path + ".js")])
79 78
80 def GetSourceForTest(self, testcase): 79 def GetSourceForTest(self, testcase):
81 filename = os.path.join(self.testroot, testcase.path + ".js") 80 filename = os.path.join(self.testroot, testcase.path + ".js")
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 # Magic incantation to allow longer path names on Windows. 129 # Magic incantation to allow longer path names on Windows.
131 archive.extractall(u"\\\\?\\%s" % self.root) 130 archive.extractall(u"\\\\?\\%s" % self.root)
132 else: 131 else:
133 archive.extractall(self.root) 132 archive.extractall(self.root)
134 os.rename(os.path.join(self.root, "tc39-test262-%s" % revision), 133 os.rename(os.path.join(self.root, "tc39-test262-%s" % revision),
135 directory_name) 134 directory_name)
136 135
137 136
138 def GetSuite(name, root): 137 def GetSuite(name, root):
139 return Test262TestSuite(name, root) 138 return Test262TestSuite(name, root)
OLDNEW
« no previous file with comments | « test/test262-es6/testcfg.py ('k') | test/webkit/testcfg.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698