| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 self.harness += [os.path.join(self.root, "harness-adapt.js")] | 52 self.harness += [os.path.join(self.root, "harness-adapt.js")] |
| 53 | 53 |
| 54 def CommonTestName(self, testcase): | 54 def CommonTestName(self, testcase): |
| 55 return testcase.path.split(os.path.sep)[-1] | 55 return testcase.path.split(os.path.sep)[-1] |
| 56 | 56 |
| 57 def ListTests(self, context): | 57 def ListTests(self, context): |
| 58 tests = [] | 58 tests = [] |
| 59 for dirname, dirs, files in os.walk(self.testroot): | 59 for dirname, dirs, files in os.walk(self.testroot): |
| 60 for dotted in [x for x in dirs if x.startswith(".")]: | 60 for dotted in [x for x in dirs if x.startswith(".")]: |
| 61 dirs.remove(dotted) | 61 dirs.remove(dotted) |
| 62 if context.noi18n and "intl402" in dirs: |
| 63 dirs.remove("intl402") |
| 62 dirs.sort() | 64 dirs.sort() |
| 63 files.sort() | 65 files.sort() |
| 64 for filename in files: | 66 for filename in files: |
| 65 if filename.endswith(".js"): | 67 if filename.endswith(".js"): |
| 66 testname = os.path.join(dirname[len(self.testroot) + 1:], | 68 testname = os.path.join(dirname[len(self.testroot) + 1:], |
| 67 filename[:-3]) | 69 filename[:-3]) |
| 68 case = testcase.TestCase(self, testname) | 70 case = testcase.TestCase(self, testname) |
| 69 tests.append(case) | 71 tests.append(case) |
| 70 return tests | 72 return tests |
| 71 | 73 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 # Magic incantation to allow longer path names on Windows. | 113 # Magic incantation to allow longer path names on Windows. |
| 112 archive.extractall(u"\\\\?\\%s" % self.root) | 114 archive.extractall(u"\\\\?\\%s" % self.root) |
| 113 else: | 115 else: |
| 114 archive.extractall(self.root) | 116 archive.extractall(self.root) |
| 115 os.rename(os.path.join(self.root, "test262-%s" % revision), | 117 os.rename(os.path.join(self.root, "test262-%s" % revision), |
| 116 directory_name) | 118 directory_name) |
| 117 | 119 |
| 118 | 120 |
| 119 def GetSuite(name, root): | 121 def GetSuite(name, root): |
| 120 return Test262TestSuite(name, root) | 122 return Test262TestSuite(name, root) |
| OLD | NEW |