| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 class Test262TestSuite(testsuite.TestSuite): | 101 class Test262TestSuite(testsuite.TestSuite): |
| 102 | 102 |
| 103 def __init__(self, name, root): | 103 def __init__(self, name, root): |
| 104 super(Test262TestSuite, self).__init__(name, root) | 104 super(Test262TestSuite, self).__init__(name, root) |
| 105 self.testroot = os.path.join(self.root, *TEST_262_SUITE_PATH) | 105 self.testroot = os.path.join(self.root, *TEST_262_SUITE_PATH) |
| 106 self.harnesspath = os.path.join(self.root, *TEST_262_HARNESS_PATH) | 106 self.harnesspath = os.path.join(self.root, *TEST_262_HARNESS_PATH) |
| 107 self.harness = [os.path.join(self.harnesspath, f) | 107 self.harness = [os.path.join(self.harnesspath, f) |
| 108 for f in TEST_262_HARNESS_FILES] | 108 for f in TEST_262_HARNESS_FILES] |
| 109 self.harness += [os.path.join(self.root, "harness-adapt.js")] | 109 self.harness += [os.path.join(self.root, "harness-adapt.js")] |
| 110 self.ignition_filter = "--ignition-filter=" + self.testroot + "/*" | 110 self.ignition_filter = "--ignition-filter=s:" + self.testroot |
| 111 self.ParseTestRecord = None | 111 self.ParseTestRecord = None |
| 112 | 112 |
| 113 def ListTests(self, context): | 113 def ListTests(self, context): |
| 114 tests = [] | 114 tests = [] |
| 115 for dirname, dirs, files in os.walk(self.testroot): | 115 for dirname, dirs, files in os.walk(self.testroot): |
| 116 for dotted in [x for x in dirs if x.startswith(".")]: | 116 for dotted in [x for x in dirs if x.startswith(".")]: |
| 117 dirs.remove(dotted) | 117 dirs.remove(dotted) |
| 118 if context.noi18n and "intl402" in dirs: | 118 if context.noi18n and "intl402" in dirs: |
| 119 dirs.remove("intl402") | 119 dirs.remove("intl402") |
| 120 dirs.sort() | 120 dirs.sort() |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 # Magic incantation to allow longer path names on Windows. | 234 # Magic incantation to allow longer path names on Windows. |
| 235 archive.extractall(u"\\\\?\\%s" % self.root) | 235 archive.extractall(u"\\\\?\\%s" % self.root) |
| 236 else: | 236 else: |
| 237 archive.extractall(self.root) | 237 archive.extractall(self.root) |
| 238 os.rename(os.path.join(self.root, "tc39-test262-%s" % revision), | 238 os.rename(os.path.join(self.root, "tc39-test262-%s" % revision), |
| 239 directory_name) | 239 directory_name) |
| 240 | 240 |
| 241 | 241 |
| 242 def GetSuite(name, root): | 242 def GetSuite(name, root): |
| 243 return Test262TestSuite(name, root) | 243 return Test262TestSuite(name, root) |
| OLD | NEW |