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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 "mojo_public_bindings_unittests") | 411 "mojo_public_bindings_unittests") |
412 | 412 |
413 def TestMojoPublicSystem(self): | 413 def TestMojoPublicSystem(self): |
414 return self.SimpleTest("mojo_public_system", | 414 return self.SimpleTest("mojo_public_system", |
415 "mojo_public_system_unittests") | 415 "mojo_public_system_unittests") |
416 | 416 |
417 def TestMojoPublicSysPerf(self): | 417 def TestMojoPublicSysPerf(self): |
418 return self.SimpleTest("mojo_public_sysperf", | 418 return self.SimpleTest("mojo_public_sysperf", |
419 "mojo_public_system_perftests") | 419 "mojo_public_system_perftests") |
420 | 420 |
421 def TestMojoPublicUtility(self): | |
422 return self.SimpleTest("mojo_public_utility", | |
423 "mojo_public_utility_unittests") | |
424 | |
425 def TestMojoSystem(self): | 421 def TestMojoSystem(self): |
426 return self.SimpleTest("mojo_system", "mojo_system_unittests") | 422 return self.SimpleTest("mojo_system", "mojo_system_unittests") |
427 | 423 |
428 def TestNet(self): | 424 def TestNet(self): |
429 return self.SimpleTest("net", "net_unittests") | 425 return self.SimpleTest("net", "net_unittests") |
430 | 426 |
431 def TestNetPerf(self): | 427 def TestNetPerf(self): |
432 return self.SimpleTest("net", "net_perftests") | 428 return self.SimpleTest("net", "net_perftests") |
433 | 429 |
434 def TestPhoneNumber(self): | 430 def TestPhoneNumber(self): |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 "media": TestMedia, "media_unittests": TestMedia, | 688 "media": TestMedia, "media_unittests": TestMedia, |
693 "message_center": TestMessageCenter, | 689 "message_center": TestMessageCenter, |
694 "message_center_unittests" : TestMessageCenter, | 690 "message_center_unittests" : TestMessageCenter, |
695 "midi": TestMidi, "midi_unittests": TestMidi, | 691 "midi": TestMidi, "midi_unittests": TestMidi, |
696 "mojo_common": TestMojoCommon, | 692 "mojo_common": TestMojoCommon, |
697 "mojo_common_unittests": TestMojoCommon, | 693 "mojo_common_unittests": TestMojoCommon, |
698 "mojo_system": TestMojoSystem, | 694 "mojo_system": TestMojoSystem, |
699 "mojo_system_unittests": TestMojoSystem, | 695 "mojo_system_unittests": TestMojoSystem, |
700 "mojo_public_system": TestMojoPublicSystem, | 696 "mojo_public_system": TestMojoPublicSystem, |
701 "mojo_public_system_unittests": TestMojoPublicSystem, | 697 "mojo_public_system_unittests": TestMojoPublicSystem, |
702 "mojo_public_utility": TestMojoPublicUtility, | |
703 "mojo_public_utility_unittests": TestMojoPublicUtility, | |
704 "mojo_public_bindings": TestMojoPublicBindings, | 698 "mojo_public_bindings": TestMojoPublicBindings, |
705 "mojo_public_bindings_unittests": TestMojoPublicBindings, | 699 "mojo_public_bindings_unittests": TestMojoPublicBindings, |
706 "mojo_public_sysperf": TestMojoPublicSysPerf, | 700 "mojo_public_sysperf": TestMojoPublicSysPerf, |
707 "net": TestNet, "net_unittests": TestNet, | 701 "net": TestNet, "net_unittests": TestNet, |
708 "net_perf": TestNetPerf, "net_perftests": TestNetPerf, | 702 "net_perf": TestNetPerf, "net_perftests": TestNetPerf, |
709 "phonenumber": TestPhoneNumber, | 703 "phonenumber": TestPhoneNumber, |
710 "libphonenumber_unittests": TestPhoneNumber, | 704 "libphonenumber_unittests": TestPhoneNumber, |
711 "ppapi": TestPPAPI, "ppapi_unittests": TestPPAPI, | 705 "ppapi": TestPPAPI, "ppapi_unittests": TestPPAPI, |
712 "printing": TestPrinting, "printing_unittests": TestPrinting, | 706 "printing": TestPrinting, "printing_unittests": TestPrinting, |
713 "remoting": TestRemoting, "remoting_unittests": TestRemoting, | 707 "remoting": TestRemoting, "remoting_unittests": TestRemoting, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 | 795 |
802 for t in options.test: | 796 for t in options.test: |
803 tests = ChromeTests(options, args, t) | 797 tests = ChromeTests(options, args, t) |
804 ret = tests.Run() | 798 ret = tests.Run() |
805 if ret: return ret | 799 if ret: return ret |
806 return 0 | 800 return 0 |
807 | 801 |
808 | 802 |
809 if __name__ == "__main__": | 803 if __name__ == "__main__": |
810 sys.exit(_main()) | 804 sys.exit(_main()) |
OLD | NEW |