| 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 multiprocessing | 10 import multiprocessing |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 | 390 |
| 391 def TestKeyboard(self): | 391 def TestKeyboard(self): |
| 392 return self.SimpleTest("keyboard", "keyboard_unittests") | 392 return self.SimpleTest("keyboard", "keyboard_unittests") |
| 393 | 393 |
| 394 def TestMedia(self): | 394 def TestMedia(self): |
| 395 return self.SimpleTest("chrome", "media_unittests") | 395 return self.SimpleTest("chrome", "media_unittests") |
| 396 | 396 |
| 397 def TestMessageCenter(self): | 397 def TestMessageCenter(self): |
| 398 return self.SimpleTest("message_center", "message_center_unittests") | 398 return self.SimpleTest("message_center", "message_center_unittests") |
| 399 | 399 |
| 400 def TestMojoAppsJS(self): | |
| 401 return self.SimpleTest("mojo_apps_js", "mojo_apps_js_unittests") | |
| 402 | |
| 403 def TestMojoCommon(self): | 400 def TestMojoCommon(self): |
| 404 return self.SimpleTest("mojo_common", "mojo_common_unittests") | 401 return self.SimpleTest("mojo_common", "mojo_common_unittests") |
| 405 | 402 |
| 406 def TestMojoJS(self): | |
| 407 return self.SimpleTest("mojo_js", "mojo_js_unittests") | |
| 408 | |
| 409 def TestMojoPublicBindings(self): | 403 def TestMojoPublicBindings(self): |
| 410 return self.SimpleTest("mojo_public_bindings", | 404 return self.SimpleTest("mojo_public_bindings", |
| 411 "mojo_public_bindings_unittests") | 405 "mojo_public_bindings_unittests") |
| 412 | 406 |
| 413 def TestMojoPublicEnv(self): | 407 def TestMojoPublicEnv(self): |
| 414 return self.SimpleTest("mojo_public_env", | 408 return self.SimpleTest("mojo_public_env", |
| 415 "mojo_public_environment_unittests") | 409 "mojo_public_environment_unittests") |
| 416 | 410 |
| 417 def TestMojoPublicSystem(self): | 411 def TestMojoPublicSystem(self): |
| 418 return self.SimpleTest("mojo_public_system", | 412 return self.SimpleTest("mojo_public_system", |
| 419 "mojo_public_system_unittests") | 413 "mojo_public_system_unittests") |
| 420 | 414 |
| 421 def TestMojoPublicSysPerf(self): | 415 def TestMojoPublicSysPerf(self): |
| 422 return self.SimpleTest("mojo_public_sysperf", | 416 return self.SimpleTest("mojo_public_sysperf", |
| 423 "mojo_public_system_perftests") | 417 "mojo_public_system_perftests") |
| 424 | 418 |
| 425 def TestMojoPublicUtility(self): | 419 def TestMojoPublicUtility(self): |
| 426 return self.SimpleTest("mojo_public_utility", | 420 return self.SimpleTest("mojo_public_utility", |
| 427 "mojo_public_utility_unittests") | 421 "mojo_public_utility_unittests") |
| 428 | 422 |
| 429 def TestMojoApplicationManager(self): | |
| 430 return self.SimpleTest("mojo_application_manager", | |
| 431 "mojo_application_manager_unittests") | |
| 432 | |
| 433 def TestMojoSystem(self): | 423 def TestMojoSystem(self): |
| 434 return self.SimpleTest("mojo_system", "mojo_system_unittests") | 424 return self.SimpleTest("mojo_system", "mojo_system_unittests") |
| 435 | 425 |
| 436 def TestMojoViewManager(self): | |
| 437 return self.SimpleTest("mojo_view_manager", "mojo_view_manager_unittests") | |
| 438 | |
| 439 def TestNet(self): | 426 def TestNet(self): |
| 440 return self.SimpleTest("net", "net_unittests") | 427 return self.SimpleTest("net", "net_unittests") |
| 441 | 428 |
| 442 def TestNetPerf(self): | 429 def TestNetPerf(self): |
| 443 return self.SimpleTest("net", "net_perftests") | 430 return self.SimpleTest("net", "net_perftests") |
| 444 | 431 |
| 445 def TestPhoneNumber(self): | 432 def TestPhoneNumber(self): |
| 446 return self.SimpleTest("phonenumber", "libphonenumber_unittests") | 433 return self.SimpleTest("phonenumber", "libphonenumber_unittests") |
| 447 | 434 |
| 448 def TestPPAPI(self): | 435 def TestPPAPI(self): |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 "gpu": TestGPU, "gpu_unittests": TestGPU, | 682 "gpu": TestGPU, "gpu_unittests": TestGPU, |
| 696 "ipc": TestIpc, "ipc_tests": TestIpc, | 683 "ipc": TestIpc, "ipc_tests": TestIpc, |
| 697 "installer_util": TestInstallerUtil, | 684 "installer_util": TestInstallerUtil, |
| 698 "interactive_ui": TestInteractiveUI, | 685 "interactive_ui": TestInteractiveUI, |
| 699 "jingle": TestJingle, "jingle_unittests": TestJingle, | 686 "jingle": TestJingle, "jingle_unittests": TestJingle, |
| 700 "keyboard": TestKeyboard, "keyboard_unittests": TestKeyboard, | 687 "keyboard": TestKeyboard, "keyboard_unittests": TestKeyboard, |
| 701 "layout": TestLayout, "layout_tests": TestLayout, | 688 "layout": TestLayout, "layout_tests": TestLayout, |
| 702 "media": TestMedia, "media_unittests": TestMedia, | 689 "media": TestMedia, "media_unittests": TestMedia, |
| 703 "message_center": TestMessageCenter, | 690 "message_center": TestMessageCenter, |
| 704 "message_center_unittests" : TestMessageCenter, | 691 "message_center_unittests" : TestMessageCenter, |
| 705 "mojo_apps_js": TestMojoAppsJS, | |
| 706 "mojo_common": TestMojoCommon, | 692 "mojo_common": TestMojoCommon, |
| 707 "mojo_js": TestMojoJS, | |
| 708 "mojo_system": TestMojoSystem, | |
| 709 "mojo_public_system": TestMojoPublicSystem, | 693 "mojo_public_system": TestMojoPublicSystem, |
| 710 "mojo_public_utility": TestMojoPublicUtility, | 694 "mojo_public_utility": TestMojoPublicUtility, |
| 711 "mojo_public_bindings": TestMojoPublicBindings, | 695 "mojo_public_bindings": TestMojoPublicBindings, |
| 712 "mojo_public_env": TestMojoPublicEnv, | 696 "mojo_public_env": TestMojoPublicEnv, |
| 713 "mojo_public_sysperf": TestMojoPublicSysPerf, | 697 "mojo_public_sysperf": TestMojoPublicSysPerf, |
| 714 "mojo_application_manager": TestMojoApplicationManager, | |
| 715 "mojo_view_manager": TestMojoViewManager, | |
| 716 "net": TestNet, "net_unittests": TestNet, | 698 "net": TestNet, "net_unittests": TestNet, |
| 717 "net_perf": TestNetPerf, "net_perftests": TestNetPerf, | 699 "net_perf": TestNetPerf, "net_perftests": TestNetPerf, |
| 718 "phonenumber": TestPhoneNumber, | 700 "phonenumber": TestPhoneNumber, |
| 719 "libphonenumber_unittests": TestPhoneNumber, | 701 "libphonenumber_unittests": TestPhoneNumber, |
| 720 "ppapi": TestPPAPI, "ppapi_unittests": TestPPAPI, | 702 "ppapi": TestPPAPI, "ppapi_unittests": TestPPAPI, |
| 721 "printing": TestPrinting, "printing_unittests": TestPrinting, | 703 "printing": TestPrinting, "printing_unittests": TestPrinting, |
| 722 "remoting": TestRemoting, "remoting_unittests": TestRemoting, | 704 "remoting": TestRemoting, "remoting_unittests": TestRemoting, |
| 723 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, | 705 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, |
| 724 "sandbox": TestLinuxSandbox, "sandbox_linux_unittests": TestLinuxSandbox, | 706 "sandbox": TestLinuxSandbox, "sandbox_linux_unittests": TestLinuxSandbox, |
| 725 "sql": TestSql, "sql_unittests": TestSql, | 707 "sql": TestSql, "sql_unittests": TestSql, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 | 784 |
| 803 for t in options.test: | 785 for t in options.test: |
| 804 tests = ChromeTests(options, args, t) | 786 tests = ChromeTests(options, args, t) |
| 805 ret = tests.Run() | 787 ret = tests.Run() |
| 806 if ret: return ret | 788 if ret: return ret |
| 807 return 0 | 789 return 0 |
| 808 | 790 |
| 809 | 791 |
| 810 if __name__ == "__main__": | 792 if __name__ == "__main__": |
| 811 sys.exit(_main()) | 793 sys.exit(_main()) |
| OLD | NEW |