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

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

Issue 6127003: Enable sharding of individual testsuites in tools/test.py... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « test/message/testcfg.py ('k') | tools/test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2008 the V8 project authors. All rights reserved. 1 # Copyright 2008 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 return name.endswith('.js') and name != 'mjsunit.js' 104 return name.endswith('.js') and name != 'mjsunit.js'
105 return [f[:-3] for f in os.listdir(path) if SelectTest(f)] 105 return [f[:-3] for f in os.listdir(path) if SelectTest(f)]
106 106
107 def ListTests(self, current_path, path, mode): 107 def ListTests(self, current_path, path, mode):
108 mjsunit = [current_path + [t] for t in self.Ls(self.root)] 108 mjsunit = [current_path + [t] for t in self.Ls(self.root)]
109 regress = [current_path + ['regress', t] for t in self.Ls(join(self.root, 'r egress'))] 109 regress = [current_path + ['regress', t] for t in self.Ls(join(self.root, 'r egress'))]
110 bugs = [current_path + ['bugs', t] for t in self.Ls(join(self.root, 'bugs')) ] 110 bugs = [current_path + ['bugs', t] for t in self.Ls(join(self.root, 'bugs')) ]
111 third_party = [current_path + ['third_party', t] for t in self.Ls(join(self. root, 'third_party'))] 111 third_party = [current_path + ['third_party', t] for t in self.Ls(join(self. root, 'third_party'))]
112 tools = [current_path + ['tools', t] for t in self.Ls(join(self.root, 'tools '))] 112 tools = [current_path + ['tools', t] for t in self.Ls(join(self.root, 'tools '))]
113 compiler = [current_path + ['compiler', t] for t in self.Ls(join(self.root, 'compiler'))] 113 compiler = [current_path + ['compiler', t] for t in self.Ls(join(self.root, 'compiler'))]
114 mjsunit.sort()
115 regress.sort()
116 bugs.sort()
117 third_party.sort()
118 tools.sort()
119 compiler.sort()
114 all_tests = mjsunit + regress + bugs + third_party + tools + compiler 120 all_tests = mjsunit + regress + bugs + third_party + tools + compiler
115 result = [] 121 result = []
116 for test in all_tests: 122 for test in all_tests:
117 if self.Contains(path, test): 123 if self.Contains(path, test):
118 file_path = join(self.root, reduce(join, test[1:], "") + ".js") 124 file_path = join(self.root, reduce(join, test[1:], "") + ".js")
119 result.append(MjsunitTestCase(test, file_path, mode, self.context, self) ) 125 result.append(MjsunitTestCase(test, file_path, mode, self.context, self) )
120 return result 126 return result
121 127
122 def GetBuildRequirements(self): 128 def GetBuildRequirements(self):
123 return ['sample', 'sample=shell'] 129 return ['sample', 'sample=shell']
124 130
125 def GetTestStatus(self, sections, defs): 131 def GetTestStatus(self, sections, defs):
126 status_file = join(self.root, 'mjsunit.status') 132 status_file = join(self.root, 'mjsunit.status')
127 if exists(status_file): 133 if exists(status_file):
128 test.ReadConfigurationInto(status_file, sections, defs) 134 test.ReadConfigurationInto(status_file, sections, defs)
129 135
130 136
131 137
132 def GetConfiguration(context, root): 138 def GetConfiguration(context, root):
133 return MjsunitTestConfiguration(context, root) 139 return MjsunitTestConfiguration(context, root)
OLDNEW
« no previous file with comments | « test/message/testcfg.py ('k') | tools/test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698