Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: test/test262/testcfg.py

Issue 1713993002: [Swarming] Speed up test262 upload/download. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix /\ Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/test262/test262.isolate ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 21 matching lines...) Expand all
32 import shutil 32 import shutil
33 import sys 33 import sys
34 import tarfile 34 import tarfile
35 35
36 36
37 from testrunner.local import statusfile 37 from testrunner.local import statusfile
38 from testrunner.local import testsuite 38 from testrunner.local import testsuite
39 from testrunner.local import utils 39 from testrunner.local import utils
40 from testrunner.objects import testcase 40 from testrunner.objects import testcase
41 41
42 ARCHIVE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data.tar")
43
42 TEST_262_HARNESS_FILES = ["sta.js", "assert.js"] 44 TEST_262_HARNESS_FILES = ["sta.js", "assert.js"]
43 45
44 TEST_262_SUITE_PATH = ["data", "test"] 46 TEST_262_SUITE_PATH = ["data", "test"]
45 TEST_262_HARNESS_PATH = ["data", "harness"] 47 TEST_262_HARNESS_PATH = ["data", "harness"]
46 TEST_262_TOOLS_PATH = ["data", "tools", "packaging"] 48 TEST_262_TOOLS_PATH = ["data", "tools", "packaging"]
47 49
48 ALL_VARIANT_FLAGS_STRICT = dict( 50 ALL_VARIANT_FLAGS_STRICT = dict(
49 (v, [flags + ["--use-strict"] for flags in flag_sets]) 51 (v, [flags + ["--use-strict"] for flags in flag_sets])
50 for v, flag_sets in testsuite.ALL_VARIANT_FLAGS.iteritems() 52 for v, flag_sets in testsuite.ALL_VARIANT_FLAGS.iteritems()
51 ) 53 )
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 if os.path.exists(directory_old_name): 194 if os.path.exists(directory_old_name):
193 shutil.rmtree(directory_old_name) 195 shutil.rmtree(directory_old_name)
194 196
195 archive_files = [f for f in os.listdir(self.root) 197 archive_files = [f for f in os.listdir(self.root)
196 if f.startswith("tc39-test262-")] 198 if f.startswith("tc39-test262-")]
197 if len(archive_files) > 0: 199 if len(archive_files) > 0:
198 print "Clobber outdated test archives ..." 200 print "Clobber outdated test archives ..."
199 for f in archive_files: 201 for f in archive_files:
200 os.remove(os.path.join(self.root, f)) 202 os.remove(os.path.join(self.root, f))
201 203
204 print "Extracting archive..."
205 tar = tarfile.open(ARCHIVE)
206 tar.extractall(path=os.path.dirname(ARCHIVE))
207 tar.close()
208
202 209
203 def GetSuite(name, root): 210 def GetSuite(name, root):
204 return Test262TestSuite(name, root) 211 return Test262TestSuite(name, root)
OLDNEW
« no previous file with comments | « test/test262/test262.isolate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698