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

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

Issue 7605028: Add support for content unit tests to memory bot scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/valgrind/chrome_tests.py » ('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/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 ''' Runs various chrome tests through heapcheck_test.py. 7 ''' Runs various chrome tests through heapcheck_test.py.
8 8
9 Most of this code is copied from ../valgrind/chrome_tests.py. 9 Most of this code is copied from ../valgrind/chrome_tests.py.
10 TODO(glider): put common functions to a standalone module. 10 TODO(glider): put common functions to a standalone module.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 ''' 76 '''
77 77
78 def __init__(self, options, args, test): 78 def __init__(self, options, args, test):
79 # The known list of tests. 79 # The known list of tests.
80 # Recognise the original abbreviations as well as full executable names. 80 # Recognise the original abbreviations as well as full executable names.
81 self._test_list = { 81 self._test_list = {
82 "base": self.TestBase, "base_unittests": self.TestBase, 82 "base": self.TestBase, "base_unittests": self.TestBase,
83 "browser": self.TestBrowser, "browser_tests": self.TestBrowser, 83 "browser": self.TestBrowser, "browser_tests": self.TestBrowser,
84 "crypto": self.TestCrypto, "crypto_unittests": self.TestCrypto, 84 "crypto": self.TestCrypto, "crypto_unittests": self.TestCrypto,
85 "googleurl": self.TestGURL, "googleurl_unittests": self.TestGURL, 85 "googleurl": self.TestGURL, "googleurl_unittests": self.TestGURL,
86 "content": self.TestContent, "content_unittests": self.TestContent,
86 "courgette": self.TestCourgette, 87 "courgette": self.TestCourgette,
87 "courgette_unittests": self.TestCourgette, 88 "courgette_unittests": self.TestCourgette,
88 "ipc": self.TestIpc, "ipc_tests": self.TestIpc, 89 "ipc": self.TestIpc, "ipc_tests": self.TestIpc,
89 "layout": self.TestLayout, "layout_tests": self.TestLayout, 90 "layout": self.TestLayout, "layout_tests": self.TestLayout,
90 "media": self.TestMedia, "media_unittests": self.TestMedia, 91 "media": self.TestMedia, "media_unittests": self.TestMedia,
91 "net": self.TestNet, "net_unittests": self.TestNet, 92 "net": self.TestNet, "net_unittests": self.TestNet,
92 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting, 93 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting,
93 "remoting": self.TestRemoting, "remoting_unittests": self.TestRemoting, 94 "remoting": self.TestRemoting, "remoting_unittests": self.TestRemoting,
94 "startup": self.TestStartup, "startup_tests": self.TestStartup, 95 "startup": self.TestStartup, "startup_tests": self.TestStartup,
95 "sync": self.TestSync, "sync_unit_tests": self.TestSync, 96 "sync": self.TestSync, "sync_unit_tests": self.TestSync,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 256
256 def TestBrowser(self): 257 def TestBrowser(self):
257 return self.SimpleTest("chrome", "browser_tests") 258 return self.SimpleTest("chrome", "browser_tests")
258 259
259 def TestCrypto(self): 260 def TestCrypto(self):
260 return self.SimpleTest("crypto", "crypto_unittests") 261 return self.SimpleTest("crypto", "crypto_unittests")
261 262
262 def TestGURL(self): 263 def TestGURL(self):
263 return self.SimpleTest("chrome", "googleurl_unittests") 264 return self.SimpleTest("chrome", "googleurl_unittests")
264 265
266 def TestContent(self):
267 return self.SimpleTest("content", "content_unittests")
268
265 def TestCourgette(self): 269 def TestCourgette(self):
266 return self.SimpleTest("courgette", "courgette_unittests") 270 return self.SimpleTest("courgette", "courgette_unittests")
267 271
268 def TestMedia(self): 272 def TestMedia(self):
269 return self.SimpleTest("chrome", "media_unittests") 273 return self.SimpleTest("chrome", "media_unittests")
270 274
271 def TestPrinting(self): 275 def TestPrinting(self):
272 return self.SimpleTest("chrome", "printing_unittests") 276 return self.SimpleTest("chrome", "printing_unittests")
273 277
274 def TestRemoting(self): 278 def TestRemoting(self):
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 return 0 464 return 0
461 465
462 466
463 if __name__ == "__main__": 467 if __name__ == "__main__":
464 if sys.platform.startswith('linux'): 468 if sys.platform.startswith('linux'):
465 ret = _main(sys.argv) 469 ret = _main(sys.argv)
466 else: 470 else:
467 logging.error("Heap checking works only on Linux at the moment.") 471 logging.error("Heap checking works only on Linux at the moment.")
468 ret = 1 472 ret = 1
469 sys.exit(ret) 473 sys.exit(ret)
OLDNEW
« no previous file with comments | « no previous file | tools/valgrind/chrome_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698