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

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

Issue 2400713004: [modules] Update test262 config and status file. (Closed)
Patch Set: Created 4 years, 2 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/test262.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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 def ListTests(self, context): 114 def ListTests(self, context):
115 tests = [] 115 tests = []
116 for dirname, dirs, files in os.walk(self.testroot): 116 for dirname, dirs, files in os.walk(self.testroot):
117 for dotted in [x for x in dirs if x.startswith(".")]: 117 for dotted in [x for x in dirs if x.startswith(".")]:
118 dirs.remove(dotted) 118 dirs.remove(dotted)
119 if context.noi18n and "intl402" in dirs: 119 if context.noi18n and "intl402" in dirs:
120 dirs.remove("intl402") 120 dirs.remove("intl402")
121 dirs.sort() 121 dirs.sort()
122 files.sort() 122 files.sort()
123 for filename in files: 123 for filename in files:
124 if filename.endswith(".js"): 124 if filename.endswith(".js") and not filename.endswith("_FIXTURE.js"):
125 fullpath = os.path.join(dirname, filename) 125 fullpath = os.path.join(dirname, filename)
126 relpath = fullpath[len(self.testroot) + 1 : -3] 126 relpath = fullpath[len(self.testroot) + 1 : -3]
127 testname = relpath.replace(os.path.sep, "/") 127 testname = relpath.replace(os.path.sep, "/")
128 case = testcase.TestCase(self, testname) 128 case = testcase.TestCase(self, testname)
129 tests.append(case) 129 tests.append(case)
130 return tests 130 return tests
131 131
132 def GetFlagsForTestCase(self, testcase, context): 132 def GetFlagsForTestCase(self, testcase, context):
133 return (testcase.flags + context.mode_flags + self.harness + 133 return (testcase.flags + context.mode_flags + self.harness +
134 self.GetIncludesForTest(testcase) + ["--harmony"] + 134 self.GetIncludesForTest(testcase) + ["--harmony"] +
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 # data folder. 211 # data folder.
212 if os.path.exists(ARCHIVE) and not os.path.exists(DATA): 212 if os.path.exists(ARCHIVE) and not os.path.exists(DATA):
213 print "Extracting archive..." 213 print "Extracting archive..."
214 tar = tarfile.open(ARCHIVE) 214 tar = tarfile.open(ARCHIVE)
215 tar.extractall(path=os.path.dirname(ARCHIVE)) 215 tar.extractall(path=os.path.dirname(ARCHIVE))
216 tar.close() 216 tar.close()
217 217
218 218
219 def GetSuite(name, root): 219 def GetSuite(name, root):
220 return Test262TestSuite(name, root) 220 return Test262TestSuite(name, root)
OLDNEW
« no previous file with comments | « test/test262/test262.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698