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: tools/testrunner/local/testsuite.py

Issue 704723002: Add fast-variants feature to test driver. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | « tools/testrunner/local/statusfile.py ('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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 return testcase.path.replace("\\", "/") 74 return testcase.path.replace("\\", "/")
75 else: 75 else:
76 return testcase.path 76 return testcase.path
77 77
78 def ListTests(self, context): 78 def ListTests(self, context):
79 raise NotImplementedError 79 raise NotImplementedError
80 80
81 def VariantFlags(self, testcase, default_flags): 81 def VariantFlags(self, testcase, default_flags):
82 if testcase.outcomes and statusfile.OnlyStandardVariant(testcase.outcomes): 82 if testcase.outcomes and statusfile.OnlyStandardVariant(testcase.outcomes):
83 return [[]] 83 return [[]]
84 if testcase.outcomes and statusfile.OnlyFastVariants(testcase.outcomes):
85 return filter(lambda v: v in ["default", "turbofan"], default_flags)
84 return default_flags 86 return default_flags
85 87
86 def DownloadData(self): 88 def DownloadData(self):
87 pass 89 pass
88 90
89 def ReadStatusFile(self, variables): 91 def ReadStatusFile(self, variables):
90 (self.rules, self.wildcards) = \ 92 (self.rules, self.wildcards) = \
91 statusfile.ReadStatusFile(self.status_file(), variables) 93 statusfile.ReadStatusFile(self.status_file(), variables)
92 94
93 def ReadTestCases(self, context): 95 def ReadTestCases(self, context):
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 return tests 250 return tests
249 251
250 def GetFlagsForTestCase(self, testcase, context): 252 def GetFlagsForTestCase(self, testcase, context):
251 return (testcase.flags + ["--gtest_filter=" + testcase.path] + 253 return (testcase.flags + ["--gtest_filter=" + testcase.path] +
252 ["--gtest_random_seed=%s" % context.random_seed] + 254 ["--gtest_random_seed=%s" % context.random_seed] +
253 ["--gtest_print_time=0"] + 255 ["--gtest_print_time=0"] +
254 context.mode_flags) 256 context.mode_flags)
255 257
256 def shell(self): 258 def shell(self):
257 return self.name 259 return self.name
OLDNEW
« no previous file with comments | « tools/testrunner/local/statusfile.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698