| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 "browser": self.TestBrowser, "browser_tests": self.TestBrowser, | 85 "browser": self.TestBrowser, "browser_tests": self.TestBrowser, |
| 86 "chromeos": self.TestChromeOS, "chromeos_unittests": self.TestChromeOS, | 86 "chromeos": self.TestChromeOS, "chromeos_unittests": self.TestChromeOS, |
| 87 "compositor": self.TestCompositor, | 87 "compositor": self.TestCompositor, |
| 88 "compositor_unittests": self.TestCompositor, | 88 "compositor_unittests": self.TestCompositor, |
| 89 "content": self.TestContent, "content_unittests": self.TestContent, | 89 "content": self.TestContent, "content_unittests": self.TestContent, |
| 90 "content_browsertests": self.TestContentBrowser, | 90 "content_browsertests": self.TestContentBrowser, |
| 91 "courgette": self.TestCourgette, | 91 "courgette": self.TestCourgette, |
| 92 "courgette_unittests": self.TestCourgette, | 92 "courgette_unittests": self.TestCourgette, |
| 93 "crypto": self.TestCrypto, "crypto_unittests": self.TestCrypto, | 93 "crypto": self.TestCrypto, "crypto_unittests": self.TestCrypto, |
| 94 "device": self.TestDevice, "device_unittests": self.TestDevice, | 94 "device": self.TestDevice, "device_unittests": self.TestDevice, |
| 95 "googleurl": self.TestGURL, "googleurl_unittests": self.TestGURL, | |
| 96 "gpu": self.TestGPU, "gpu_unittests": self.TestGPU, | 95 "gpu": self.TestGPU, "gpu_unittests": self.TestGPU, |
| 97 "ipc": self.TestIpc, "ipc_tests": self.TestIpc, | 96 "ipc": self.TestIpc, "ipc_tests": self.TestIpc, |
| 98 "jingle": self.TestJingle, "jingle_unittests": self.TestJingle, | 97 "jingle": self.TestJingle, "jingle_unittests": self.TestJingle, |
| 99 "layout": self.TestLayout, "layout_tests": self.TestLayout, | 98 "layout": self.TestLayout, "layout_tests": self.TestLayout, |
| 100 "media": self.TestMedia, "media_unittests": self.TestMedia, | 99 "media": self.TestMedia, "media_unittests": self.TestMedia, |
| 101 "message_center": self.TestMessageCenter, | 100 "message_center": self.TestMessageCenter, |
| 102 "message_center_unittests" : self.TestMessageCenter, | 101 "message_center_unittests" : self.TestMessageCenter, |
| 103 "net": self.TestNet, "net_unittests": self.TestNet, | 102 "net": self.TestNet, "net_unittests": self.TestNet, |
| 104 "ppapi": self.TestPPAPI, "ppapi_unittests": self.TestPPAPI, | 103 "ppapi": self.TestPPAPI, "ppapi_unittests": self.TestPPAPI, |
| 105 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting, | 104 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting, |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 | 284 |
| 286 def TestCrypto(self): | 285 def TestCrypto(self): |
| 287 return self.SimpleTest("crypto", "crypto_unittests") | 286 return self.SimpleTest("crypto", "crypto_unittests") |
| 288 | 287 |
| 289 def TestDevice(self): | 288 def TestDevice(self): |
| 290 return self.SimpleTest("device", "device_unittests") | 289 return self.SimpleTest("device", "device_unittests") |
| 291 | 290 |
| 292 def TestGPU(self): | 291 def TestGPU(self): |
| 293 return self.SimpleTest("gpu", "gpu_unittests") | 292 return self.SimpleTest("gpu", "gpu_unittests") |
| 294 | 293 |
| 295 def TestGURL(self): | |
| 296 return self.SimpleTest("chrome", "googleurl_unittests") | |
| 297 | |
| 298 def TestIpc(self): | 294 def TestIpc(self): |
| 299 return self.SimpleTest("ipc", "ipc_tests") | 295 return self.SimpleTest("ipc", "ipc_tests") |
| 300 | 296 |
| 301 def TestJingle(self): | 297 def TestJingle(self): |
| 302 return self.SimpleTest("chrome", "jingle_unittests") | 298 return self.SimpleTest("chrome", "jingle_unittests") |
| 303 | 299 |
| 304 def TestMedia(self): | 300 def TestMedia(self): |
| 305 return self.SimpleTest("chrome", "media_unittests") | 301 return self.SimpleTest("chrome", "media_unittests") |
| 306 | 302 |
| 307 def TestMessageCenter(self): | 303 def TestMessageCenter(self): |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 for t in options.test: | 484 for t in options.test: |
| 489 tests = ChromeTests(options, args, t) | 485 tests = ChromeTests(options, args, t) |
| 490 ret = tests.Run() | 486 ret = tests.Run() |
| 491 if ret: | 487 if ret: |
| 492 return ret | 488 return ret |
| 493 return 0 | 489 return 0 |
| 494 | 490 |
| 495 | 491 |
| 496 if __name__ == "__main__": | 492 if __name__ == "__main__": |
| 497 sys.exit(main()) | 493 sys.exit(main()) |
| OLD | NEW |