Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2008 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 This file is a copy of ../purify/chrome_tests.py. Eventually, it would be nice | 10 This file is a copy of ../purify/chrome_tests.py. Eventually, it would be nice |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 81 "googleurl": self.TestGURL, "googleurl_unittests": self.TestGURL, | 81 "googleurl": self.TestGURL, "googleurl_unittests": self.TestGURL, |
| 82 "ipc": self.TestIpc, "ipc_tests": self.TestIpc, | 82 "ipc": self.TestIpc, "ipc_tests": self.TestIpc, |
| 83 "layout": self.TestLayout, "layout_tests": self.TestLayout, | 83 "layout": self.TestLayout, "layout_tests": self.TestLayout, |
| 84 "media": self.TestMedia, "media_unittests": self.TestMedia, | 84 "media": self.TestMedia, "media_unittests": self.TestMedia, |
| 85 "net": self.TestNet, "net_unittests": self.TestNet, | 85 "net": self.TestNet, "net_unittests": self.TestNet, |
| 86 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting, | 86 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting, |
| 87 "startup": self.TestStartup, "startup_tests": self.TestStartup, | 87 "startup": self.TestStartup, "startup_tests": self.TestStartup, |
| 88 "test_shell": self.TestTestShell, "test_shell_tests": self.TestTestShell, | 88 "test_shell": self.TestTestShell, "test_shell_tests": self.TestTestShell, |
| 89 "ui": self.TestUI, "ui_tests": self.TestUI, | 89 "ui": self.TestUI, "ui_tests": self.TestUI, |
| 90 "unit": self.TestUnit, "unit_tests": self.TestUnit, | 90 "unit": self.TestUnit, "unit_tests": self.TestUnit, |
| 91 "app": self.TestApp, "app_unittests": self.TestApp, | |
|
M-A Ruel
2009/07/08 14:33:15
alignment
| |
| 91 } | 92 } |
| 92 | 93 |
| 93 if test not in self._test_list: | 94 if test not in self._test_list: |
| 94 raise TestNotFound("Unknown test: %s" % test) | 95 raise TestNotFound("Unknown test: %s" % test) |
| 95 | 96 |
| 96 self._options = options | 97 self._options = options |
| 97 self._args = args | 98 self._args = args |
| 98 self._test = test | 99 self._test = test |
| 99 | 100 |
| 100 script_dir = google.path_utils.ScriptDir() | 101 script_dir = google.path_utils.ScriptDir() |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 250 valgrind_test_args=[ | 251 valgrind_test_args=[ |
| 251 "--trace_children", | 252 "--trace_children", |
| 252 "--indirect"]) | 253 "--indirect"]) |
| 253 | 254 |
| 254 def TestTestShell(self): | 255 def TestTestShell(self): |
| 255 return self.SimpleTest("webkit", "test_shell_tests") | 256 return self.SimpleTest("webkit", "test_shell_tests") |
| 256 | 257 |
| 257 def TestUnit(self): | 258 def TestUnit(self): |
| 258 return self.SimpleTest("chrome", "unit_tests") | 259 return self.SimpleTest("chrome", "unit_tests") |
| 259 | 260 |
| 261 def TestApp(self): | |
| 262 return self.SimpleTest("chrome", "app_tests") | |
| 263 | |
| 260 def TestUI(self): | 264 def TestUI(self): |
| 261 return self.SimpleTest("chrome", "ui_tests", | 265 return self.SimpleTest("chrome", "ui_tests", |
| 262 valgrind_test_args=[ | 266 valgrind_test_args=[ |
| 263 "--timeout=120000", | 267 "--timeout=120000", |
| 264 "--trace_children", | 268 "--trace_children", |
| 265 "--indirect"], | 269 "--indirect"], |
| 266 cmd_args=[ | 270 cmd_args=[ |
| 267 "--ui-test-timeout=120000", | 271 "--ui-test-timeout=120000", |
| 268 "--ui-test-action-timeout=80000", | 272 "--ui-test-action-timeout=80000", |
| 269 "--ui-test-action-max-timeout=180000", | 273 "--ui-test-action-max-timeout=180000", |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 417 for t in options.test: | 421 for t in options.test: |
| 418 tests = ChromeTests(options, args, t) | 422 tests = ChromeTests(options, args, t) |
| 419 ret = tests.Run() | 423 ret = tests.Run() |
| 420 if ret: return ret | 424 if ret: return ret |
| 421 return 0 | 425 return 0 |
| 422 | 426 |
| 423 | 427 |
| 424 if __name__ == "__main__": | 428 if __name__ == "__main__": |
| 425 ret = _main(sys.argv) | 429 ret = _main(sys.argv) |
| 426 sys.exit(ret) | 430 sys.exit(ret) |
| OLD | NEW |