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 18 matching lines...) Expand all Loading... |
29 import hashlib | 29 import hashlib |
30 import os | 30 import os |
31 import sys | 31 import sys |
32 import tarfile | 32 import tarfile |
33 import urllib | 33 import urllib |
34 | 34 |
35 from testrunner.local import testsuite | 35 from testrunner.local import testsuite |
36 from testrunner.objects import testcase | 36 from testrunner.objects import testcase |
37 | 37 |
38 | 38 |
39 TEST_262_ARCHIVE_REVISION = "53c4ade82d14" # This is the r360 revision. | 39 TEST_262_ARCHIVE_REVISION = "99aac3bc1cad" # This is the r365 revision. |
40 TEST_262_ARCHIVE_MD5 = "5fa4918b00e5d60e57bdd3c05deaeb0c" | 40 TEST_262_ARCHIVE_MD5 = "aadbd720ce9bdb4f8f3de066f4d7eea1" |
41 TEST_262_URL = "http://hg.ecmascript.org/tests/test262/archive/%s.tar.bz2" | 41 TEST_262_URL = "http://hg.ecmascript.org/tests/test262/archive/%s.tar.bz2" |
42 TEST_262_HARNESS = ["sta.js", "testBuiltInObject.js"] | 42 TEST_262_HARNESS = ["sta.js", "testBuiltInObject.js"] |
43 TEST_262_SKIP = ["intl402"] | 43 TEST_262_SKIP = ["intl402"] |
44 | 44 |
45 | 45 |
46 class Test262TestSuite(testsuite.TestSuite): | 46 class Test262TestSuite(testsuite.TestSuite): |
47 | 47 |
48 def __init__(self, name, root): | 48 def __init__(self, name, root): |
49 super(Test262TestSuite, self).__init__(name, root) | 49 super(Test262TestSuite, self).__init__(name, root) |
50 self.testroot = os.path.join(root, "data", "test", "suite") | 50 self.testroot = os.path.join(root, "data", "test", "suite") |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 # Magic incantation to allow longer path names on Windows. | 114 # Magic incantation to allow longer path names on Windows. |
115 archive.extractall(u"\\\\?\\%s" % self.root) | 115 archive.extractall(u"\\\\?\\%s" % self.root) |
116 else: | 116 else: |
117 archive.extractall(self.root) | 117 archive.extractall(self.root) |
118 os.rename(os.path.join(self.root, "test262-%s" % revision), | 118 os.rename(os.path.join(self.root, "test262-%s" % revision), |
119 directory_name) | 119 directory_name) |
120 | 120 |
121 | 121 |
122 def GetSuite(name, root): | 122 def GetSuite(name, root): |
123 return Test262TestSuite(name, root) | 123 return Test262TestSuite(name, root) |
OLD | NEW |