| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Provide common functionality to simulate a google-test executable. | 5 """Provide common functionality to simulate a google-test executable. |
| 6 | 6 |
| 7 http://code.google.com/p/googletest/ | 7 http://code.google.com/p/googletest/ |
| 8 """ | 8 """ |
| 9 | 9 |
| 10 import optparse | 10 import optparse |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 print '' | 72 print '' |
| 73 sys.exit(0) | 73 sys.exit(0) |
| 74 | 74 |
| 75 if options.gtest_filter: | 75 if options.gtest_filter: |
| 76 print 'Note: Google Test filter = %s\n' % options.gtest_filter | 76 print 'Note: Google Test filter = %s\n' % options.gtest_filter |
| 77 test_cases = options.gtest_filter.split(':') | 77 test_cases = options.gtest_filter.split(':') |
| 78 else: | 78 else: |
| 79 test_cases = sum(( | 79 test_cases = sum(( |
| 80 ['%s.%s' % (f, c) for c in all_tests[f]] for f in all_tests), []) | 80 ['%s.%s' % (f, c) for c in all_tests[f]] for f in all_tests), []) |
| 81 return sorted(test_cases), args | 81 return sorted(test_cases), args |
| OLD | NEW |