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