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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 TestContent(self): | 236 def TestContent(self): |
237 return self.SimpleTest("content", "content_unittests") | 237 return self.SimpleTest("content", "content_unittests") |
238 | 238 |
| 239 def TestContentBrowser(self): |
| 240 return self.SimpleTest("content", "content_browsertests") |
| 241 |
239 def TestCourgette(self): | 242 def TestCourgette(self): |
240 return self.SimpleTest("courgette", "courgette_unittests") | 243 return self.SimpleTest("courgette", "courgette_unittests") |
241 | 244 |
242 def TestCrypto(self): | 245 def TestCrypto(self): |
243 return self.SimpleTest("crypto", "crypto_unittests") | 246 return self.SimpleTest("crypto", "crypto_unittests") |
244 | 247 |
245 def TestFFmpeg(self): | 248 def TestFFmpeg(self): |
246 return self.SimpleTest("chrome", "ffmpeg_unittests") | 249 return self.SimpleTest("chrome", "ffmpeg_unittests") |
247 | 250 |
248 def TestFFmpegRegressions(self): | 251 def TestFFmpegRegressions(self): |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 | 475 |
473 # The known list of tests. | 476 # The known list of tests. |
474 # Recognise the original abbreviations as well as full executable names. | 477 # Recognise the original abbreviations as well as full executable names. |
475 _test_list = { | 478 _test_list = { |
476 "cmdline" : RunCmdLine, | 479 "cmdline" : RunCmdLine, |
477 "ash": TestAsh, "ash_unittests": TestAsh, | 480 "ash": TestAsh, "ash_unittests": TestAsh, |
478 "aura": TestAura, "aura_unittests": TestAura, | 481 "aura": TestAura, "aura_unittests": TestAura, |
479 "automated_ui" : TestAutomatedUI, | 482 "automated_ui" : TestAutomatedUI, |
480 "base": TestBase, "base_unittests": TestBase, | 483 "base": TestBase, "base_unittests": TestBase, |
481 "browser": TestBrowser, "browser_tests": TestBrowser, | 484 "browser": TestBrowser, "browser_tests": TestBrowser, |
| 485 "content": TestContent, "content_unittests": TestContent, |
| 486 "content_browsertests": TestContentBrowser, |
| 487 "courgette": TestCourgette, "courgette_unittests": TestCourgette, |
482 "crypto": TestCrypto, "crypto_unittests": TestCrypto, | 488 "crypto": TestCrypto, "crypto_unittests": TestCrypto, |
483 "ffmpeg": TestFFmpeg, "ffmpeg_unittests": TestFFmpeg, | 489 "ffmpeg": TestFFmpeg, "ffmpeg_unittests": TestFFmpeg, |
484 "ffmpeg_regression_tests": TestFFmpegRegressions, | 490 "ffmpeg_regression_tests": TestFFmpegRegressions, |
485 "googleurl": TestGURL, "googleurl_unittests": TestGURL, | 491 "googleurl": TestGURL, "googleurl_unittests": TestGURL, |
486 "content": TestContent, "content_unittests": TestContent, | 492 "gpu": TestGPU, "gpu_unittests": TestGPU, |
487 "courgette": TestCourgette, "courgette_unittests": TestCourgette, | |
488 "ipc": TestIpc, "ipc_tests": TestIpc, | 493 "ipc": TestIpc, "ipc_tests": TestIpc, |
489 "interactive_ui": TestInteractiveUI, | 494 "interactive_ui": TestInteractiveUI, |
490 "layout": TestLayout, "layout_tests": TestLayout, | 495 "layout": TestLayout, "layout_tests": TestLayout, |
491 "webkit": TestLayout, | 496 "webkit": TestLayout, |
492 "media": TestMedia, "media_unittests": TestMedia, | 497 "media": TestMedia, "media_unittests": TestMedia, |
493 "net": TestNet, "net_unittests": TestNet, | 498 "net": TestNet, "net_unittests": TestNet, |
494 "jingle": TestJingle, "jingle_unittests": TestJingle, | 499 "jingle": TestJingle, "jingle_unittests": TestJingle, |
495 "ppapi": TestPPAPI, "ppapi_unittests": TestPPAPI, | 500 "ppapi": TestPPAPI, "ppapi_unittests": TestPPAPI, |
496 "printing": TestPrinting, "printing_unittests": TestPrinting, | 501 "printing": TestPrinting, "printing_unittests": TestPrinting, |
497 "reliability": TestReliability, "reliability_tests": TestReliability, | 502 "reliability": TestReliability, "reliability_tests": TestReliability, |
498 "remoting": TestRemoting, "remoting_unittests": TestRemoting, | 503 "remoting": TestRemoting, "remoting_unittests": TestRemoting, |
499 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, | 504 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, |
| 505 "sql": TestSql, "sql_unittests": TestSql, |
500 "sync": TestSync, "sync_unit_tests": TestSync, | 506 "sync": TestSync, "sync_unit_tests": TestSync, |
501 "sync_integration_tests": TestSyncIntegration, | 507 "sync_integration_tests": TestSyncIntegration, |
502 "sync_integration": TestSyncIntegration, | 508 "sync_integration": TestSyncIntegration, |
503 "test_shell": TestTestShell, "test_shell_tests": TestTestShell, | 509 "test_shell": TestTestShell, "test_shell_tests": TestTestShell, |
| 510 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit, |
504 "unit": TestUnit, "unit_tests": TestUnit, | 511 "unit": TestUnit, "unit_tests": TestUnit, |
505 "sql": TestSql, "sql_unittests": TestSql, | 512 "views": TestViews, "views_unittests": TestViews, |
506 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit, | |
507 "gfx": TestGfx, "gfx_unittests": TestGfx, | 513 "gfx": TestGfx, "gfx_unittests": TestGfx, |
508 "gpu": TestGPU, "gpu_unittests": TestGPU, | |
509 "views": TestViews, "views_unittests": TestViews, | |
510 } | 514 } |
511 | 515 |
512 | 516 |
513 def _main(): | 517 def _main(): |
514 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> " | 518 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> " |
515 "[-t <test> ...]") | 519 "[-t <test> ...]") |
516 parser.disable_interspersed_args() | 520 parser.disable_interspersed_args() |
517 parser.add_option("-b", "--build_dir", | 521 parser.add_option("-b", "--build_dir", |
518 help="the location of the compiler output") | 522 help="the location of the compiler output") |
519 parser.add_option("-t", "--test", action="append", default=[], | 523 parser.add_option("-t", "--test", action="append", default=[], |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 | 562 |
559 for t in options.test: | 563 for t in options.test: |
560 tests = ChromeTests(options, args, t) | 564 tests = ChromeTests(options, args, t) |
561 ret = tests.Run() | 565 ret = tests.Run() |
562 if ret: return ret | 566 if ret: return ret |
563 return 0 | 567 return 0 |
564 | 568 |
565 | 569 |
566 if __name__ == "__main__": | 570 if __name__ == "__main__": |
567 sys.exit(_main()) | 571 sys.exit(_main()) |
OLD | NEW |