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 optparse | 10 import optparse |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 | 226 |
227 def TestAsh(self): | 227 def TestAsh(self): |
228 return self.SimpleTest("ash", "ash_unittests") | 228 return self.SimpleTest("ash", "ash_unittests") |
229 | 229 |
230 def TestAura(self): | 230 def TestAura(self): |
231 return self.SimpleTest("aura", "aura_unittests") | 231 return self.SimpleTest("aura", "aura_unittests") |
232 | 232 |
233 def TestBase(self): | 233 def TestBase(self): |
234 return self.SimpleTest("base", "base_unittests") | 234 return self.SimpleTest("base", "base_unittests") |
235 | 235 |
| 236 def TestCompositor(self): |
| 237 return self.SimpleTest("compositor", "compositor_unittests") |
| 238 |
236 def TestContent(self): | 239 def TestContent(self): |
237 return self.SimpleTest("content", "content_unittests") | 240 return self.SimpleTest("content", "content_unittests") |
238 | 241 |
239 def TestContentBrowser(self): | 242 def TestContentBrowser(self): |
240 return self.SimpleTest("content", "content_browsertests") | 243 return self.SimpleTest("content", "content_browsertests") |
241 | 244 |
242 def TestCourgette(self): | 245 def TestCourgette(self): |
243 return self.SimpleTest("courgette", "courgette_unittests") | 246 return self.SimpleTest("courgette", "courgette_unittests") |
244 | 247 |
245 def TestCrypto(self): | 248 def TestCrypto(self): |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 | 471 |
469 # The known list of tests. | 472 # The known list of tests. |
470 # Recognise the original abbreviations as well as full executable names. | 473 # Recognise the original abbreviations as well as full executable names. |
471 _test_list = { | 474 _test_list = { |
472 "cmdline" : RunCmdLine, | 475 "cmdline" : RunCmdLine, |
473 "ash": TestAsh, "ash_unittests": TestAsh, | 476 "ash": TestAsh, "ash_unittests": TestAsh, |
474 "aura": TestAura, "aura_unittests": TestAura, | 477 "aura": TestAura, "aura_unittests": TestAura, |
475 "automated_ui" : TestAutomatedUI, | 478 "automated_ui" : TestAutomatedUI, |
476 "base": TestBase, "base_unittests": TestBase, | 479 "base": TestBase, "base_unittests": TestBase, |
477 "browser": TestBrowser, "browser_tests": TestBrowser, | 480 "browser": TestBrowser, "browser_tests": TestBrowser, |
| 481 "compositor": TestCompositor,"compositor_unittests": TestCompositor, |
478 "content": TestContent, "content_unittests": TestContent, | 482 "content": TestContent, "content_unittests": TestContent, |
479 "content_browsertests": TestContentBrowser, | 483 "content_browsertests": TestContentBrowser, |
480 "courgette": TestCourgette, "courgette_unittests": TestCourgette, | 484 "courgette": TestCourgette, "courgette_unittests": TestCourgette, |
481 "crypto": TestCrypto, "crypto_unittests": TestCrypto, | 485 "crypto": TestCrypto, "crypto_unittests": TestCrypto, |
482 "ffmpeg": TestFFmpeg, "ffmpeg_unittests": TestFFmpeg, | 486 "ffmpeg": TestFFmpeg, "ffmpeg_unittests": TestFFmpeg, |
483 "ffmpeg_regression_tests": TestFFmpegRegressions, | 487 "ffmpeg_regression_tests": TestFFmpegRegressions, |
484 "googleurl": TestGURL, "googleurl_unittests": TestGURL, | 488 "googleurl": TestGURL, "googleurl_unittests": TestGURL, |
485 "gpu": TestGPU, "gpu_unittests": TestGPU, | 489 "gpu": TestGPU, "gpu_unittests": TestGPU, |
486 "ipc": TestIpc, "ipc_tests": TestIpc, | 490 "ipc": TestIpc, "ipc_tests": TestIpc, |
487 "interactive_ui": TestInteractiveUI, | 491 "interactive_ui": TestInteractiveUI, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 | 558 |
555 for t in options.test: | 559 for t in options.test: |
556 tests = ChromeTests(options, args, t) | 560 tests = ChromeTests(options, args, t) |
557 ret = tests.Run() | 561 ret = tests.Run() |
558 if ret: return ret | 562 if ret: return ret |
559 return 0 | 563 return 0 |
560 | 564 |
561 | 565 |
562 if __name__ == "__main__": | 566 if __name__ == "__main__": |
563 sys.exit(_main()) | 567 sys.exit(_main()) |
OLD | NEW |