Chromium Code Reviews| 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 29 matching lines...) Expand all Loading... | |
| 40 from testrunner.objects import testcase | 40 from testrunner.objects import testcase |
| 41 | 41 |
| 42 DATA = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data") | 42 DATA = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data") |
| 43 ARCHIVE = DATA + ".tar" | 43 ARCHIVE = DATA + ".tar" |
| 44 | 44 |
| 45 TEST_262_HARNESS_FILES = ["sta.js", "assert.js"] | 45 TEST_262_HARNESS_FILES = ["sta.js", "assert.js"] |
| 46 TEST_262_NATIVE_FILES = ["detachArrayBuffer.js"] | 46 TEST_262_NATIVE_FILES = ["detachArrayBuffer.js"] |
| 47 | 47 |
| 48 TEST_262_SUITE_PATH = ["data", "test"] | 48 TEST_262_SUITE_PATH = ["data", "test"] |
| 49 TEST_262_HARNESS_PATH = ["data", "harness"] | 49 TEST_262_HARNESS_PATH = ["data", "harness"] |
| 50 TEST_262_TOOLS_PATH = ["data", "tools", "packaging"] | 50 TEST_262_TOOLS_PATH = ["harness", "src"] |
|
Michael Achenbach
2016/07/22 07:07:47
Refactoring suggestion, maybe for follow up. I won
| |
| 51 | |
| 52 sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), | |
| 53 *TEST_262_TOOLS_PATH)) | |
| 51 | 54 |
| 52 ALL_VARIANT_FLAGS_STRICT = dict( | 55 ALL_VARIANT_FLAGS_STRICT = dict( |
| 53 (v, [flags + ["--use-strict"] for flags in flag_sets]) | 56 (v, [flags + ["--use-strict"] for flags in flag_sets]) |
| 54 for v, flag_sets in testsuite.ALL_VARIANT_FLAGS.iteritems() | 57 for v, flag_sets in testsuite.ALL_VARIANT_FLAGS.iteritems() |
| 55 ) | 58 ) |
| 56 | 59 |
| 57 FAST_VARIANT_FLAGS_STRICT = dict( | 60 FAST_VARIANT_FLAGS_STRICT = dict( |
| 58 (v, [flags + ["--use-strict"] for flags in flag_sets]) | 61 (v, [flags + ["--use-strict"] for flags in flag_sets]) |
| 59 for v, flag_sets in testsuite.FAST_VARIANT_FLAGS.iteritems() | 62 for v, flag_sets in testsuite.FAST_VARIANT_FLAGS.iteritems() |
| 60 ) | 63 ) |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 224 # data folder. | 227 # data folder. |
| 225 if os.path.exists(ARCHIVE) and not os.path.exists(DATA): | 228 if os.path.exists(ARCHIVE) and not os.path.exists(DATA): |
| 226 print "Extracting archive..." | 229 print "Extracting archive..." |
| 227 tar = tarfile.open(ARCHIVE) | 230 tar = tarfile.open(ARCHIVE) |
| 228 tar.extractall(path=os.path.dirname(ARCHIVE)) | 231 tar.extractall(path=os.path.dirname(ARCHIVE)) |
| 229 tar.close() | 232 tar.close() |
| 230 | 233 |
| 231 | 234 |
| 232 def GetSuite(name, root): | 235 def GetSuite(name, root): |
| 233 return Test262TestSuite(name, root) | 236 return Test262TestSuite(name, root) |
| OLD | NEW |