Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: tools/valgrind/chrome_tests.py

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/valgrind/README ('k') | tools/valgrind/chrome_tests.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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())
OLDNEW
« no previous file with comments | « tools/valgrind/README ('k') | tools/valgrind/chrome_tests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698