| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 def TestUIUnit(self): | 266 def TestUIUnit(self): |
| 267 return self.SimpleTest("chrome", "ui_unittests") | 267 return self.SimpleTest("chrome", "ui_unittests") |
| 268 | 268 |
| 269 def TestGfx(self): | 269 def TestGfx(self): |
| 270 return self.SimpleTest("chrome", "gfx_unittests") | 270 return self.SimpleTest("chrome", "gfx_unittests") |
| 271 | 271 |
| 272 # Valgrind timeouts are in seconds. | 272 # Valgrind timeouts are in seconds. |
| 273 UI_VALGRIND_ARGS = ["--timeout=7200", "--trace_children", "--indirect"] | 273 UI_VALGRIND_ARGS = ["--timeout=7200", "--trace_children", "--indirect"] |
| 274 # UI test timeouts are in milliseconds. | 274 # UI test timeouts are in milliseconds. |
| 275 UI_TEST_ARGS = ["--ui-test-action-timeout=120000", | 275 UI_TEST_ARGS = ["--ui-test-action-timeout=120000", |
| 276 "--ui-test-action-max-timeout=280000", | 276 "--ui-test-action-max-timeout=280000"] |
| 277 "--ui-test-terminate-timeout=120000"] | |
| 278 def TestUI(self): | 277 def TestUI(self): |
| 279 return self.SimpleTest("chrome", "ui_tests", | 278 return self.SimpleTest("chrome", "ui_tests", |
| 280 valgrind_test_args=self.UI_VALGRIND_ARGS, | 279 valgrind_test_args=self.UI_VALGRIND_ARGS, |
| 281 cmd_args=self.UI_TEST_ARGS) | 280 cmd_args=self.UI_TEST_ARGS) |
| 282 | 281 |
| 283 def TestAutomatedUI(self): | 282 def TestAutomatedUI(self): |
| 284 return self.SimpleTest("chrome", "automated_ui_tests", | 283 return self.SimpleTest("chrome", "automated_ui_tests", |
| 285 valgrind_test_args=self.UI_VALGRIND_ARGS, | 284 valgrind_test_args=self.UI_VALGRIND_ARGS, |
| 286 cmd_args=self.UI_TEST_ARGS) | 285 cmd_args=self.UI_TEST_ARGS) |
| 287 | 286 |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 for t in options.test: | 487 for t in options.test: |
| 489 tests = ChromeTests(options, args, t) | 488 tests = ChromeTests(options, args, t) |
| 490 ret = tests.Run() | 489 ret = tests.Run() |
| 491 if ret: return ret | 490 if ret: return ret |
| 492 return 0 | 491 return 0 |
| 493 | 492 |
| 494 | 493 |
| 495 if __name__ == "__main__": | 494 if __name__ == "__main__": |
| 496 ret = _main(sys.argv) | 495 ret = _main(sys.argv) |
| 497 sys.exit(ret) | 496 sys.exit(ret) |
| OLD | NEW |