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

Side by Side Diff: test/cctest/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 | « no previous file | test/es5conform/testcfg.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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 return [] 85 return []
86 result = [] 86 result = []
87 for test_desc in output.stdout.strip().split(): 87 for test_desc in output.stdout.strip().split():
88 raw_test, dependency = test_desc.split('<') 88 raw_test, dependency = test_desc.split('<')
89 relative_path = raw_test.split('/') 89 relative_path = raw_test.split('/')
90 full_path = current_path + relative_path 90 full_path = current_path + relative_path
91 if dependency != '': 91 if dependency != '':
92 dependency = relative_path[0] + '/' + dependency 92 dependency = relative_path[0] + '/' + dependency
93 if self.Contains(path, full_path): 93 if self.Contains(path, full_path):
94 result.append(CcTestCase(full_path, executable, mode, raw_test, dependen cy, self.context)) 94 result.append(CcTestCase(full_path, executable, mode, raw_test, dependen cy, self.context))
95 result.sort()
95 return result 96 return result
96 97
97 def GetTestStatus(self, sections, defs): 98 def GetTestStatus(self, sections, defs):
98 status_file = join(self.root, 'cctest.status') 99 status_file = join(self.root, 'cctest.status')
99 if exists(status_file): 100 if exists(status_file):
100 test.ReadConfigurationInto(status_file, sections, defs) 101 test.ReadConfigurationInto(status_file, sections, defs)
101 102
102 103
103 def GetConfiguration(context, root): 104 def GetConfiguration(context, root):
104 return CcTestConfiguration(context, root) 105 return CcTestConfiguration(context, root)
OLDNEW
« no previous file with comments | « no previous file | test/es5conform/testcfg.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698