| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 ''' Runs various chrome tests through valgrind_test.py.''' | 6 ''' Runs various chrome tests through valgrind_test.py.''' |
| 7 | 7 |
| 8 import glob | 8 import glob |
| 9 import logging | 9 import logging |
| 10 import multiprocessing | 10 import multiprocessing |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 class BuildDirNotFound(Exception): pass | 27 class BuildDirNotFound(Exception): pass |
| 28 | 28 |
| 29 class BuildDirAmbiguous(Exception): pass | 29 class BuildDirAmbiguous(Exception): pass |
| 30 | 30 |
| 31 class ExecutableNotFound(Exception): pass | 31 class ExecutableNotFound(Exception): pass |
| 32 | 32 |
| 33 class BadBinary(Exception): pass | 33 class BadBinary(Exception): pass |
| 34 | 34 |
| 35 class ChromeTests: | 35 class ChromeTests: |
| 36 SLOW_TOOLS = ["memcheck", "tsan", "tsan_rv", "drmemory"] | 36 SLOW_TOOLS = ["memcheck", "drmemory"] |
| 37 LAYOUT_TESTS_DEFAULT_CHUNK_SIZE = 300 | 37 LAYOUT_TESTS_DEFAULT_CHUNK_SIZE = 300 |
| 38 | 38 |
| 39 def __init__(self, options, args, test): | 39 def __init__(self, options, args, test): |
| 40 if ':' in test: | 40 if ':' in test: |
| 41 (self._test, self._gtest_filter) = test.split(':', 1) | 41 (self._test, self._gtest_filter) = test.split(':', 1) |
| 42 else: | 42 else: |
| 43 self._test = test | 43 self._test = test |
| 44 self._gtest_filter = options.gtest_filter | 44 self._gtest_filter = options.gtest_filter |
| 45 | 45 |
| 46 if self._test not in self._test_list: | 46 if self._test not in self._test_list: |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 | 792 |
| 793 for t in options.test: | 793 for t in options.test: |
| 794 tests = ChromeTests(options, args, t) | 794 tests = ChromeTests(options, args, t) |
| 795 ret = tests.Run() | 795 ret = tests.Run() |
| 796 if ret: return ret | 796 if ret: return ret |
| 797 return 0 | 797 return 0 |
| 798 | 798 |
| 799 | 799 |
| 800 if __name__ == "__main__": | 800 if __name__ == "__main__": |
| 801 sys.exit(_main()) | 801 sys.exit(_main()) |
| OLD | NEW |