| OLD | NEW |
| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 [shell, "--list"] + | 51 [shell, "--list"] + |
| 52 context.extra_flags) | 52 context.extra_flags) |
| 53 if output.exit_code != 0: | 53 if output.exit_code != 0: |
| 54 print output.stdout | 54 print output.stdout |
| 55 print output.stderr | 55 print output.stderr |
| 56 return [] | 56 return [] |
| 57 tests = [] | 57 tests = [] |
| 58 for test_desc in output.stdout.strip().split(): | 58 for test_desc in output.stdout.strip().split(): |
| 59 test = testcase.TestCase(self, test_desc) | 59 test = testcase.TestCase(self, test_desc) |
| 60 tests.append(test) | 60 tests.append(test) |
| 61 tests.sort() | 61 tests.sort(key=lambda t: t.path) |
| 62 return tests | 62 return tests |
| 63 | 63 |
| 64 def GetFlagsForTestCase(self, testcase, context): | 64 def GetFlagsForTestCase(self, testcase, context): |
| 65 testname = testcase.path.split(os.path.sep)[-1] | 65 testname = testcase.path.split(os.path.sep)[-1] |
| 66 return (testcase.flags + [testcase.path] + context.mode_flags) | 66 return (testcase.flags + [testcase.path] + context.mode_flags) |
| 67 | 67 |
| 68 def shell(self): | 68 def shell(self): |
| 69 return "cctest" | 69 return "cctest" |
| 70 | 70 |
| 71 | 71 |
| 72 def GetSuite(name, root): | 72 def GetSuite(name, root): |
| 73 return CcTestSuite(name, root) | 73 return CcTestSuite(name, root) |
| OLD | NEW |