Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 # chrome_tests.py | 6 # chrome_tests.py |
| 7 | 7 |
| 8 ''' Runs various chrome tests through valgrind_test.py.''' | 8 ''' Runs various chrome tests through valgrind_test.py.''' |
| 9 | 9 |
| 10 import glob | 10 import glob |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 230 | 230 |
| 231 def TestPrinting(self): | 231 def TestPrinting(self): |
| 232 return self.SimpleTest("chrome", "printing_unittests") | 232 return self.SimpleTest("chrome", "printing_unittests") |
| 233 | 233 |
| 234 def TestRemoting(self): | 234 def TestRemoting(self): |
| 235 return self.SimpleTest("chrome", "remoting_unittests", | 235 return self.SimpleTest("chrome", "remoting_unittests", |
| 236 cmd_args=[ | 236 cmd_args=[ |
| 237 "--ui-test-action-timeout=120000", | 237 "--ui-test-action-timeout=120000", |
| 238 "--ui-test-action-max-timeout=280000"]) | 238 "--ui-test-action-max-timeout=280000"]) |
| 239 | 239 |
| 240 def TestCrypto(self): | |
| 241 return self.SimpleTest("crypto", "crypto_unittests") | |
| 242 | |
| 240 def TestIpc(self): | 243 def TestIpc(self): |
| 241 return self.SimpleTest("ipc", "ipc_tests", | 244 return self.SimpleTest("ipc", "ipc_tests", |
| 242 valgrind_test_args=["--trace_children"]) | 245 valgrind_test_args=["--trace_children"]) |
| 243 | 246 |
| 244 def TestNet(self): | 247 def TestNet(self): |
| 245 return self.SimpleTest("net", "net_unittests") | 248 return self.SimpleTest("net", "net_unittests") |
| 246 | 249 |
| 247 def TestStartup(self): | 250 def TestStartup(self): |
| 248 # We don't need the performance results, we're just looking for pointer | 251 # We don't need the performance results, we're just looking for pointer |
| 249 # errors, so set number of iterations down to the minimum. | 252 # errors, so set number of iterations down to the minimum. |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 412 # mark the ones that have errors in them. These won't be visible in the | 415 # mark the ones that have errors in them. These won't be visible in the |
| 413 # summary list for long, but will be useful for someone reviewing this bot. | 416 # summary list for long, but will be useful for someone reviewing this bot. |
| 414 return ret | 417 return ret |
| 415 | 418 |
| 416 # The known list of tests. | 419 # The known list of tests. |
| 417 # Recognise the original abbreviations as well as full executable names. | 420 # Recognise the original abbreviations as well as full executable names. |
| 418 _test_list = { | 421 _test_list = { |
| 419 "automated_ui" : TestAutomatedUI, | 422 "automated_ui" : TestAutomatedUI, |
| 420 "base": TestBase, "base_unittests": TestBase, | 423 "base": TestBase, "base_unittests": TestBase, |
| 421 "browser": TestBrowser, "browser_tests": TestBrowser, | 424 "browser": TestBrowser, "browser_tests": TestBrowser, |
| 425 "crypto":TestCrypto, "crypto_unittests":TestCrypto, | |
|
Timur Iskhodzhanov
2011/05/19 16:41:31
nit: please add spaces after ":"
| |
| 422 "googleurl": TestGURL, "googleurl_unittests": TestGURL, | 426 "googleurl": TestGURL, "googleurl_unittests": TestGURL, |
| 423 "courgette": TestCourgette, "courgette_unittests": TestCourgette, | 427 "courgette": TestCourgette, "courgette_unittests": TestCourgette, |
| 424 "ipc": TestIpc, "ipc_tests": TestIpc, | 428 "ipc": TestIpc, "ipc_tests": TestIpc, |
| 425 "interactive_ui": TestInteractiveUI, | 429 "interactive_ui": TestInteractiveUI, |
| 426 "layout": TestLayout, "layout_tests": TestLayout, | 430 "layout": TestLayout, "layout_tests": TestLayout, |
| 427 "webkit": TestLayout, | 431 "webkit": TestLayout, |
| 428 "media": TestMedia, "media_unittests": TestMedia, | 432 "media": TestMedia, "media_unittests": TestMedia, |
| 429 "net": TestNet, "net_unittests": TestNet, | 433 "net": TestNet, "net_unittests": TestNet, |
| 430 "jingle": TestJingle, "jingle_unittests": TestJingle, | 434 "jingle": TestJingle, "jingle_unittests": TestJingle, |
| 431 "printing": TestPrinting, "printing_unittests": TestPrinting, | 435 "printing": TestPrinting, "printing_unittests": TestPrinting, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 488 for t in options.test: | 492 for t in options.test: |
| 489 tests = ChromeTests(options, args, t) | 493 tests = ChromeTests(options, args, t) |
| 490 ret = tests.Run() | 494 ret = tests.Run() |
| 491 if ret: return ret | 495 if ret: return ret |
| 492 return 0 | 496 return 0 |
| 493 | 497 |
| 494 | 498 |
| 495 if __name__ == "__main__": | 499 if __name__ == "__main__": |
| 496 ret = _main(sys.argv) | 500 ret = _main(sys.argv) |
| 497 sys.exit(ret) | 501 sys.exit(ret) |
| OLD | NEW |