OLD | NEW |
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 Loading... |
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 Loading... |
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) |
OLD | NEW |