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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 print output.stdout | 321 print output.stdout |
322 print output.stderr | 322 print output.stderr |
323 raise Exception("Test executable failed to list the tests.") | 323 raise Exception("Test executable failed to list the tests.") |
324 tests = [] | 324 tests = [] |
325 test_case = '' | 325 test_case = '' |
326 for line in output.stdout.splitlines(): | 326 for line in output.stdout.splitlines(): |
327 test_desc = line.strip().split()[0] | 327 test_desc = line.strip().split()[0] |
328 if test_desc.endswith('.'): | 328 if test_desc.endswith('.'): |
329 test_case = test_desc | 329 test_case = test_desc |
330 elif test_case and test_desc: | 330 elif test_case and test_desc: |
331 test = testcase.TestCase(self, test_case + test_desc, dependency=None) | 331 test = testcase.TestCase(self, test_case + test_desc) |
332 tests.append(test) | 332 tests.append(test) |
333 tests.sort() | 333 tests.sort() |
334 return tests | 334 return tests |
335 | 335 |
336 def GetFlagsForTestCase(self, testcase, context): | 336 def GetFlagsForTestCase(self, testcase, context): |
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 |