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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 def TestContent(self): | 231 def TestContent(self): |
232 return self.SimpleTest("content", "content_unittests") | 232 return self.SimpleTest("content", "content_unittests") |
233 | 233 |
234 def TestCourgette(self): | 234 def TestCourgette(self): |
235 return self.SimpleTest("courgette", "courgette_unittests") | 235 return self.SimpleTest("courgette", "courgette_unittests") |
236 | 236 |
237 def TestCrypto(self): | 237 def TestCrypto(self): |
238 return self.SimpleTest("crypto", "crypto_unittests") | 238 return self.SimpleTest("crypto", "crypto_unittests") |
239 | 239 |
| 240 def TestFFmpeg(self): |
| 241 return self.SimpleTest("chrome", "ffmpeg_unittests") |
| 242 |
| 243 def TestFFmpegRegressions(self): |
| 244 return self.SimpleTest("chrome", "ffmpeg_regression_tests") |
| 245 |
240 def TestGfx(self): | 246 def TestGfx(self): |
241 return self.SimpleTest("chrome", "gfx_unittests") | 247 return self.SimpleTest("chrome", "gfx_unittests") |
242 | 248 |
243 def TestGPU(self): | 249 def TestGPU(self): |
244 return self.SimpleTest("gpu", "gpu_unittests") | 250 return self.SimpleTest("gpu", "gpu_unittests") |
245 | 251 |
246 def TestGURL(self): | 252 def TestGURL(self): |
247 return self.SimpleTest("chrome", "googleurl_unittests") | 253 return self.SimpleTest("chrome", "googleurl_unittests") |
248 | 254 |
249 def TestIpc(self): | 255 def TestIpc(self): |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 | 451 |
446 # The known list of tests. | 452 # The known list of tests. |
447 # Recognise the original abbreviations as well as full executable names. | 453 # Recognise the original abbreviations as well as full executable names. |
448 _test_list = { | 454 _test_list = { |
449 "cmdline" : RunCmdLine, | 455 "cmdline" : RunCmdLine, |
450 "ash": TestAsh, "aura_shell_unittests": TestAsh, | 456 "ash": TestAsh, "aura_shell_unittests": TestAsh, |
451 "automated_ui" : TestAutomatedUI, | 457 "automated_ui" : TestAutomatedUI, |
452 "base": TestBase, "base_unittests": TestBase, | 458 "base": TestBase, "base_unittests": TestBase, |
453 "browser": TestBrowser, "browser_tests": TestBrowser, | 459 "browser": TestBrowser, "browser_tests": TestBrowser, |
454 "crypto": TestCrypto, "crypto_unittests": TestCrypto, | 460 "crypto": TestCrypto, "crypto_unittests": TestCrypto, |
| 461 "ffmpeg": TestFFmpeg, "ffmpeg_unittests": TestFFmpeg, |
| 462 "ffmpeg_regression_tests": TestFFmpegRegressions, |
455 "googleurl": TestGURL, "googleurl_unittests": TestGURL, | 463 "googleurl": TestGURL, "googleurl_unittests": TestGURL, |
456 "content": TestContent, "content_unittests": TestContent, | 464 "content": TestContent, "content_unittests": TestContent, |
457 "courgette": TestCourgette, "courgette_unittests": TestCourgette, | 465 "courgette": TestCourgette, "courgette_unittests": TestCourgette, |
458 "ipc": TestIpc, "ipc_tests": TestIpc, | 466 "ipc": TestIpc, "ipc_tests": TestIpc, |
459 "interactive_ui": TestInteractiveUI, | 467 "interactive_ui": TestInteractiveUI, |
460 "layout": TestLayout, "layout_tests": TestLayout, | 468 "layout": TestLayout, "layout_tests": TestLayout, |
461 "webkit": TestLayout, | 469 "webkit": TestLayout, |
462 "media": TestMedia, "media_unittests": TestMedia, | 470 "media": TestMedia, "media_unittests": TestMedia, |
463 "net": TestNet, "net_unittests": TestNet, | 471 "net": TestNet, "net_unittests": TestNet, |
464 "jingle": TestJingle, "jingle_unittests": TestJingle, | 472 "jingle": TestJingle, "jingle_unittests": TestJingle, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 | 533 |
526 for t in options.test: | 534 for t in options.test: |
527 tests = ChromeTests(options, args, t) | 535 tests = ChromeTests(options, args, t) |
528 ret = tests.Run() | 536 ret = tests.Run() |
529 if ret: return ret | 537 if ret: return ret |
530 return 0 | 538 return 0 |
531 | 539 |
532 | 540 |
533 if __name__ == "__main__": | 541 if __name__ == "__main__": |
534 sys.exit(_main()) | 542 sys.exit(_main()) |
OLD | NEW |