| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |