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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 | 394 |
395 def TestKeyboard(self): | 395 def TestKeyboard(self): |
396 return self.SimpleTest("keyboard", "keyboard_unittests") | 396 return self.SimpleTest("keyboard", "keyboard_unittests") |
397 | 397 |
398 def TestMedia(self): | 398 def TestMedia(self): |
399 return self.SimpleTest("chrome", "media_unittests") | 399 return self.SimpleTest("chrome", "media_unittests") |
400 | 400 |
401 def TestMessageCenter(self): | 401 def TestMessageCenter(self): |
402 return self.SimpleTest("message_center", "message_center_unittests") | 402 return self.SimpleTest("message_center", "message_center_unittests") |
403 | 403 |
404 def TestMidi(self): | |
405 return self.SimpleTest("chrome", "midi_unittests") | |
406 | |
407 def TestMojoCommon(self): | 404 def TestMojoCommon(self): |
408 return self.SimpleTest("mojo_common", "mojo_common_unittests") | 405 return self.SimpleTest("mojo_common", "mojo_common_unittests") |
409 | 406 |
410 def TestMojoPublicBindings(self): | 407 def TestMojoPublicBindings(self): |
411 return self.SimpleTest("mojo_public_bindings", | 408 return self.SimpleTest("mojo_public_bindings", |
412 "mojo_public_bindings_unittests") | 409 "mojo_public_bindings_unittests") |
413 | 410 |
414 def TestMojoPublicEnv(self): | 411 def TestMojoPublicEnv(self): |
415 return self.SimpleTest("mojo_public_env", | 412 return self.SimpleTest("mojo_public_env", |
416 "mojo_public_environment_unittests") | 413 "mojo_public_environment_unittests") |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 "gpu": TestGPU, "gpu_unittests": TestGPU, | 689 "gpu": TestGPU, "gpu_unittests": TestGPU, |
693 "ipc": TestIpc, "ipc_tests": TestIpc, | 690 "ipc": TestIpc, "ipc_tests": TestIpc, |
694 "installer_util": TestInstallerUtil, | 691 "installer_util": TestInstallerUtil, |
695 "interactive_ui": TestInteractiveUI, | 692 "interactive_ui": TestInteractiveUI, |
696 "jingle": TestJingle, "jingle_unittests": TestJingle, | 693 "jingle": TestJingle, "jingle_unittests": TestJingle, |
697 "keyboard": TestKeyboard, "keyboard_unittests": TestKeyboard, | 694 "keyboard": TestKeyboard, "keyboard_unittests": TestKeyboard, |
698 "layout": TestLayout, "layout_tests": TestLayout, | 695 "layout": TestLayout, "layout_tests": TestLayout, |
699 "media": TestMedia, "media_unittests": TestMedia, | 696 "media": TestMedia, "media_unittests": TestMedia, |
700 "message_center": TestMessageCenter, | 697 "message_center": TestMessageCenter, |
701 "message_center_unittests" : TestMessageCenter, | 698 "message_center_unittests" : TestMessageCenter, |
702 "midi": TestMidi, "midi_unittests": TestMidi, | |
703 "mojo_common": TestMojoCommon, | 699 "mojo_common": TestMojoCommon, |
704 "mojo_system": TestMojoSystem, | 700 "mojo_system": TestMojoSystem, |
705 "mojo_public_system": TestMojoPublicSystem, | 701 "mojo_public_system": TestMojoPublicSystem, |
706 "mojo_public_utility": TestMojoPublicUtility, | 702 "mojo_public_utility": TestMojoPublicUtility, |
707 "mojo_public_bindings": TestMojoPublicBindings, | 703 "mojo_public_bindings": TestMojoPublicBindings, |
708 "mojo_public_env": TestMojoPublicEnv, | 704 "mojo_public_env": TestMojoPublicEnv, |
709 "mojo_public_sysperf": TestMojoPublicSysPerf, | 705 "mojo_public_sysperf": TestMojoPublicSysPerf, |
710 "net": TestNet, "net_unittests": TestNet, | 706 "net": TestNet, "net_unittests": TestNet, |
711 "net_perf": TestNetPerf, "net_perftests": TestNetPerf, | 707 "net_perf": TestNetPerf, "net_perftests": TestNetPerf, |
712 "phonenumber": TestPhoneNumber, | 708 "phonenumber": TestPhoneNumber, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 | 798 |
803 for t in options.test: | 799 for t in options.test: |
804 tests = ChromeTests(options, args, t) | 800 tests = ChromeTests(options, args, t) |
805 ret = tests.Run() | 801 ret = tests.Run() |
806 if ret: return ret | 802 if ret: return ret |
807 return 0 | 803 return 0 |
808 | 804 |
809 | 805 |
810 if __name__ == "__main__": | 806 if __name__ == "__main__": |
811 sys.exit(_main()) | 807 sys.exit(_main()) |
OLD | NEW |