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 heapcheck_test.py. | 6 ''' Runs various chrome tests through heapcheck_test.py. |
7 | 7 |
8 Most of this code is copied from ../valgrind/chrome_tests.py. | 8 Most of this code is copied from ../valgrind/chrome_tests.py. |
9 TODO(glider): put common functions to a standalone module. | 9 TODO(glider): put common functions to a standalone module. |
10 ''' | 10 ''' |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 "components": self.TestComponents, | 88 "components": self.TestComponents, |
89 "components_unittests": self.TestComponents, | 89 "components_unittests": self.TestComponents, |
90 "compositor": self.TestCompositor, | 90 "compositor": self.TestCompositor, |
91 "compositor_unittests": self.TestCompositor, | 91 "compositor_unittests": self.TestCompositor, |
92 "content": self.TestContent, "content_unittests": self.TestContent, | 92 "content": self.TestContent, "content_unittests": self.TestContent, |
93 "content_browsertests": self.TestContentBrowser, | 93 "content_browsertests": self.TestContentBrowser, |
94 "courgette": self.TestCourgette, | 94 "courgette": self.TestCourgette, |
95 "courgette_unittests": self.TestCourgette, | 95 "courgette_unittests": self.TestCourgette, |
96 "crypto": self.TestCrypto, "crypto_unittests": self.TestCrypto, | 96 "crypto": self.TestCrypto, "crypto_unittests": self.TestCrypto, |
97 "device": self.TestDevice, "device_unittests": self.TestDevice, | 97 "device": self.TestDevice, "device_unittests": self.TestDevice, |
| 98 "events": self.TestEvents, "events_unittests": self.TestEvents, |
98 "gpu": self.TestGPU, "gpu_unittests": self.TestGPU, | 99 "gpu": self.TestGPU, "gpu_unittests": self.TestGPU, |
99 "ipc": self.TestIpc, "ipc_tests": self.TestIpc, | 100 "ipc": self.TestIpc, "ipc_tests": self.TestIpc, |
100 "jingle": self.TestJingle, "jingle_unittests": self.TestJingle, | 101 "jingle": self.TestJingle, "jingle_unittests": self.TestJingle, |
101 "layout": self.TestLayout, "layout_tests": self.TestLayout, | 102 "layout": self.TestLayout, "layout_tests": self.TestLayout, |
102 "media": self.TestMedia, "media_unittests": self.TestMedia, | 103 "media": self.TestMedia, "media_unittests": self.TestMedia, |
103 "message_center": self.TestMessageCenter, | 104 "message_center": self.TestMessageCenter, |
104 "message_center_unittests" : self.TestMessageCenter, | 105 "message_center_unittests" : self.TestMessageCenter, |
105 "net": self.TestNet, "net_unittests": self.TestNet, | 106 "net": self.TestNet, "net_unittests": self.TestNet, |
106 "ppapi": self.TestPPAPI, "ppapi_unittests": self.TestPPAPI, | 107 "ppapi": self.TestPPAPI, "ppapi_unittests": self.TestPPAPI, |
107 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting, | 108 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting, |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 | 289 |
289 def TestCourgette(self): | 290 def TestCourgette(self): |
290 return self.SimpleTest("courgette", "courgette_unittests") | 291 return self.SimpleTest("courgette", "courgette_unittests") |
291 | 292 |
292 def TestCrypto(self): | 293 def TestCrypto(self): |
293 return self.SimpleTest("crypto", "crypto_unittests") | 294 return self.SimpleTest("crypto", "crypto_unittests") |
294 | 295 |
295 def TestDevice(self): | 296 def TestDevice(self): |
296 return self.SimpleTest("device", "device_unittests") | 297 return self.SimpleTest("device", "device_unittests") |
297 | 298 |
| 299 def TestEvents(self): |
| 300 return self.SimpleTest("events", "events_unittests") |
| 301 |
298 def TestGPU(self): | 302 def TestGPU(self): |
299 return self.SimpleTest("gpu", "gpu_unittests") | 303 return self.SimpleTest("gpu", "gpu_unittests") |
300 | 304 |
301 def TestIpc(self): | 305 def TestIpc(self): |
302 return self.SimpleTest("ipc", "ipc_tests") | 306 return self.SimpleTest("ipc", "ipc_tests") |
303 | 307 |
304 def TestJingle(self): | 308 def TestJingle(self): |
305 return self.SimpleTest("chrome", "jingle_unittests") | 309 return self.SimpleTest("chrome", "jingle_unittests") |
306 | 310 |
307 def TestMedia(self): | 311 def TestMedia(self): |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 for t in options.test: | 510 for t in options.test: |
507 tests = ChromeTests(options, args, t) | 511 tests = ChromeTests(options, args, t) |
508 ret = tests.Run() | 512 ret = tests.Run() |
509 if ret: | 513 if ret: |
510 return ret | 514 return ret |
511 return 0 | 515 return 0 |
512 | 516 |
513 | 517 |
514 if __name__ == "__main__": | 518 if __name__ == "__main__": |
515 sys.exit(main()) | 519 sys.exit(main()) |
OLD | NEW |