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 heapcheck_test.py. | 6 ''' Runs various chrome tests through heapcheck_test.py. |
7 | 7 |
8 Most of this code is copied from ../valgrind/chrome_tests.py. | 8 Most of this code is copied from ../valgrind/chrome_tests.py. |
9 TODO(glider): put common functions to a standalone module. | 9 TODO(glider): put common functions to a standalone module. |
10 ''' | 10 ''' |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 ''' | 75 ''' |
76 | 76 |
77 def __init__(self, options, args, test): | 77 def __init__(self, options, args, test): |
78 # The known list of tests. | 78 # The known list of tests. |
79 # Recognise the original abbreviations as well as full executable names. | 79 # Recognise the original abbreviations as well as full executable names. |
80 self._test_list = { | 80 self._test_list = { |
81 "ash": self.TestAsh, "ash_unittests": self.TestAsh, | 81 "ash": self.TestAsh, "ash_unittests": self.TestAsh, |
82 "aura": self.TestAura, "aura_unittests": self.TestAura, | 82 "aura": self.TestAura, "aura_unittests": self.TestAura, |
83 "base": self.TestBase, "base_unittests": self.TestBase, | 83 "base": self.TestBase, "base_unittests": self.TestBase, |
84 "browser": self.TestBrowser, "browser_tests": self.TestBrowser, | 84 "browser": self.TestBrowser, "browser_tests": self.TestBrowser, |
| 85 "compositor": self.TestCompositor, |
| 86 "compositor_unittests": self.TestCompositor, |
85 "content": self.TestContent, "content_unittests": self.TestContent, | 87 "content": self.TestContent, "content_unittests": self.TestContent, |
86 "content_browsertests": self.TestContentBrowser, | 88 "content_browsertests": self.TestContentBrowser, |
87 "courgette": self.TestCourgette, | 89 "courgette": self.TestCourgette, |
88 "courgette_unittests": self.TestCourgette, | 90 "courgette_unittests": self.TestCourgette, |
89 "crypto": self.TestCrypto, "crypto_unittests": self.TestCrypto, | 91 "crypto": self.TestCrypto, "crypto_unittests": self.TestCrypto, |
90 "googleurl": self.TestGURL, "googleurl_unittests": self.TestGURL, | 92 "googleurl": self.TestGURL, "googleurl_unittests": self.TestGURL, |
91 "ipc": self.TestIpc, "ipc_tests": self.TestIpc, | 93 "ipc": self.TestIpc, "ipc_tests": self.TestIpc, |
92 "layout": self.TestLayout, "layout_tests": self.TestLayout, | 94 "layout": self.TestLayout, "layout_tests": self.TestLayout, |
93 "media": self.TestMedia, "media_unittests": self.TestMedia, | 95 "media": self.TestMedia, "media_unittests": self.TestMedia, |
94 "net": self.TestNet, "net_unittests": self.TestNet, | 96 "net": self.TestNet, "net_unittests": self.TestNet, |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 250 |
249 def TestAura(self): | 251 def TestAura(self): |
250 return self.SimpleTest("aura", "aura_unittests") | 252 return self.SimpleTest("aura", "aura_unittests") |
251 | 253 |
252 def TestBase(self): | 254 def TestBase(self): |
253 return self.SimpleTest("base", "base_unittests") | 255 return self.SimpleTest("base", "base_unittests") |
254 | 256 |
255 def TestBrowser(self): | 257 def TestBrowser(self): |
256 return self.SimpleTest("chrome", "browser_tests") | 258 return self.SimpleTest("chrome", "browser_tests") |
257 | 259 |
| 260 def TestCompositor(self): |
| 261 return self.SimpleTest("compositor", "compositor_unittests") |
| 262 |
258 def TestContent(self): | 263 def TestContent(self): |
259 return self.SimpleTest("content", "content_unittests") | 264 return self.SimpleTest("content", "content_unittests") |
260 | 265 |
261 def TestContentBrowser(self): | 266 def TestContentBrowser(self): |
262 return self.SimpleTest("content", "content_browsertests") | 267 return self.SimpleTest("content", "content_browsertests") |
263 | 268 |
264 def TestCourgette(self): | 269 def TestCourgette(self): |
265 return self.SimpleTest("courgette", "courgette_unittests") | 270 return self.SimpleTest("courgette", "courgette_unittests") |
266 | 271 |
267 def TestCrypto(self): | 272 def TestCrypto(self): |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 for t in options.test: | 460 for t in options.test: |
456 tests = ChromeTests(options, args, t) | 461 tests = ChromeTests(options, args, t) |
457 ret = tests.Run() | 462 ret = tests.Run() |
458 if ret: | 463 if ret: |
459 return ret | 464 return ret |
460 return 0 | 465 return 0 |
461 | 466 |
462 | 467 |
463 if __name__ == "__main__": | 468 if __name__ == "__main__": |
464 sys.exit(main()) | 469 sys.exit(main()) |
OLD | NEW |