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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 def TestUnit(self): | 269 def TestUnit(self): |
270 return self.SimpleTest("chrome", "unit_tests") | 270 return self.SimpleTest("chrome", "unit_tests") |
271 | 271 |
272 def TestUIUnit(self): | 272 def TestUIUnit(self): |
273 return self.SimpleTest("chrome", "ui_unittests") | 273 return self.SimpleTest("chrome", "ui_unittests") |
274 | 274 |
275 def TestViews(self): | 275 def TestViews(self): |
276 return self.SimpleTest("views", "views_unittests") | 276 return self.SimpleTest("views", "views_unittests") |
277 | 277 |
278 # Valgrind timeouts are in seconds. | 278 # Valgrind timeouts are in seconds. |
279 UI_VALGRIND_ARGS = ["--timeout=10000", "--trace_children", "--indirect"] | 279 UI_VALGRIND_ARGS = ["--timeout=14400", "--trace_children", "--indirect"] |
280 # UI test timeouts are in milliseconds. | 280 # UI test timeouts are in milliseconds. |
281 UI_TEST_ARGS = ["--ui-test-action-timeout=80000", | 281 UI_TEST_ARGS = ["--ui-test-action-timeout=80000", |
282 "--ui-test-action-max-timeout=200000"] | 282 "--ui-test-action-max-timeout=200000"] |
283 | 283 |
284 def TestAutomatedUI(self): | 284 def TestAutomatedUI(self): |
285 return self.SimpleTest("chrome", "automated_ui_tests", | 285 return self.SimpleTest("chrome", "automated_ui_tests", |
286 valgrind_test_args=self.UI_VALGRIND_ARGS, | 286 valgrind_test_args=self.UI_VALGRIND_ARGS, |
287 cmd_args=self.UI_TEST_ARGS) | 287 cmd_args=self.UI_TEST_ARGS) |
288 | 288 |
289 def TestBrowser(self): | 289 def TestBrowser(self): |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 for t in options.test: | 505 for t in options.test: |
506 tests = ChromeTests(options, args, t) | 506 tests = ChromeTests(options, args, t) |
507 ret = tests.Run() | 507 ret = tests.Run() |
508 if ret: return ret | 508 if ret: return ret |
509 return 0 | 509 return 0 |
510 | 510 |
511 | 511 |
512 if __name__ == "__main__": | 512 if __name__ == "__main__": |
513 ret = _main(sys.argv) | 513 ret = _main(sys.argv) |
514 sys.exit(ret) | 514 sys.exit(ret) |
OLD | NEW |