| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 filtered.append(t) | 255 filtered.append(t) |
| 256 break | 256 break |
| 257 self.tests = filtered | 257 self.tests = filtered |
| 258 | 258 |
| 259 def GetFlagsForTestCase(self, testcase, context): | 259 def GetFlagsForTestCase(self, testcase, context): |
| 260 raise NotImplementedError | 260 raise NotImplementedError |
| 261 | 261 |
| 262 def GetSourceForTest(self, testcase): | 262 def GetSourceForTest(self, testcase): |
| 263 return "(no source available)" | 263 return "(no source available)" |
| 264 | 264 |
| 265 def IsFailureOutput(self, output, testpath): | 265 def IsFailureOutput(self, testcase): |
| 266 return output.exit_code != 0 | 266 return testcase.output.exit_code != 0 |
| 267 | 267 |
| 268 def IsNegativeTest(self, testcase): | 268 def IsNegativeTest(self, testcase): |
| 269 return False | 269 return False |
| 270 | 270 |
| 271 def HasFailed(self, testcase): | 271 def HasFailed(self, testcase): |
| 272 execution_failed = self.IsFailureOutput(testcase.output, testcase.path) | 272 execution_failed = self.IsFailureOutput(testcase) |
| 273 if self.IsNegativeTest(testcase): | 273 if self.IsNegativeTest(testcase): |
| 274 return not execution_failed | 274 return not execution_failed |
| 275 else: | 275 else: |
| 276 return execution_failed | 276 return execution_failed |
| 277 | 277 |
| 278 def GetOutcome(self, testcase): | 278 def GetOutcome(self, testcase): |
| 279 if testcase.output.HasCrashed(): | 279 if testcase.output.HasCrashed(): |
| 280 return statusfile.CRASH | 280 return statusfile.CRASH |
| 281 elif testcase.output.HasTimedOut(): | 281 elif testcase.output.HasTimedOut(): |
| 282 return statusfile.TIMEOUT | 282 return statusfile.TIMEOUT |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 return (testcase.flags + ["--gtest_filter=" + testcase.path] + | 337 return (testcase.flags + ["--gtest_filter=" + testcase.path] + |
| 338 ["--gtest_random_seed=%s" % context.random_seed] + | 338 ["--gtest_random_seed=%s" % context.random_seed] + |
| 339 ["--gtest_print_time=0"] + | 339 ["--gtest_print_time=0"] + |
| 340 context.mode_flags) | 340 context.mode_flags) |
| 341 | 341 |
| 342 def _VariantGeneratorFactory(self): | 342 def _VariantGeneratorFactory(self): |
| 343 return StandardVariantGenerator | 343 return StandardVariantGenerator |
| 344 | 344 |
| 345 def shell(self): | 345 def shell(self): |
| 346 return self.name | 346 return self.name |
| OLD | NEW |