Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: tools/valgrind/chrome_tests.py

Issue 10406026: Valgrind: Increase timeouts for browser tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 valgrind_test.py.''' 6 ''' Runs various chrome tests through valgrind_test.py.'''
7 7
8 import glob 8 import glob
9 import logging 9 import logging
10 import optparse 10 import optparse
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 def TestViews(self): 306 def TestViews(self):
307 return self.SimpleTest("views", "views_unittests") 307 return self.SimpleTest("views", "views_unittests")
308 308
309 # Valgrind timeouts are in seconds. 309 # Valgrind timeouts are in seconds.
310 UI_VALGRIND_ARGS = ["--timeout=14400", "--trace_children", "--indirect"] 310 UI_VALGRIND_ARGS = ["--timeout=14400", "--trace_children", "--indirect"]
311 # UI test timeouts are in milliseconds. 311 # UI test timeouts are in milliseconds.
312 UI_TEST_ARGS = ["--ui-test-action-timeout=60000", 312 UI_TEST_ARGS = ["--ui-test-action-timeout=60000",
313 "--ui-test-action-max-timeout=150000"] 313 "--ui-test-action-max-timeout=150000"]
314 314
315 # TODO(thestig) fine-tune these values.
316 # Valgrind timeouts are in seconds.
317 BROWSER_VALGRIND_ARGS = ["--timeout=50000", "--trace_children", "--indirect"]
318 # Browser test timeouts are in milliseconds.
319 BROWSER_TEST_ARGS = ["--ui-test-action-timeout=200000",
320 "--ui-test-action-max-timeout=400000"]
321
315 def TestAutomatedUI(self): 322 def TestAutomatedUI(self):
316 return self.SimpleTest("chrome", "automated_ui_tests", 323 return self.SimpleTest("chrome", "automated_ui_tests",
317 valgrind_test_args=self.UI_VALGRIND_ARGS, 324 valgrind_test_args=self.UI_VALGRIND_ARGS,
318 cmd_args=self.UI_TEST_ARGS) 325 cmd_args=self.UI_TEST_ARGS)
319 326
320 def TestBrowser(self): 327 def TestBrowser(self):
321 return self.SimpleTest("chrome", "browser_tests", 328 return self.SimpleTest("chrome", "browser_tests",
322 valgrind_test_args=self.UI_VALGRIND_ARGS, 329 valgrind_test_args=self.BROWSER_VALGRIND_ARGS,
323 cmd_args=self.UI_TEST_ARGS) 330 cmd_args=self.BROWSER_TEST_ARGS)
324 331
325 def TestInteractiveUI(self): 332 def TestInteractiveUI(self):
326 return self.SimpleTest("chrome", "interactive_ui_tests", 333 return self.SimpleTest("chrome", "interactive_ui_tests",
327 valgrind_test_args=self.UI_VALGRIND_ARGS, 334 valgrind_test_args=self.UI_VALGRIND_ARGS,
328 cmd_args=self.UI_TEST_ARGS) 335 cmd_args=self.UI_TEST_ARGS)
329 336
330 def TestReliability(self): 337 def TestReliability(self):
331 script_dir = path_utils.ScriptDir() 338 script_dir = path_utils.ScriptDir()
332 url_list_file = os.path.join(script_dir, "reliability", "url_list.txt") 339 url_list_file = os.path.join(script_dir, "reliability", "url_list.txt")
333 return self.SimpleTest("chrome", "reliability_tests", 340 return self.SimpleTest("chrome", "reliability_tests",
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 550
544 for t in options.test: 551 for t in options.test:
545 tests = ChromeTests(options, args, t) 552 tests = ChromeTests(options, args, t)
546 ret = tests.Run() 553 ret = tests.Run()
547 if ret: return ret 554 if ret: return ret
548 return 0 555 return 0
549 556
550 557
551 if __name__ == "__main__": 558 if __name__ == "__main__":
552 sys.exit(_main()) 559 sys.exit(_main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698