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

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

Issue 7272044: Views views_unittests native widget tests leak (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment nit. Created 9 years, 5 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 | views/widget/native_widget_test_utils.h » ('j') | 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/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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 def TestApp(self): 266 def TestApp(self):
267 return self.SimpleTest("chrome", "app_unittests") 267 return self.SimpleTest("chrome", "app_unittests")
268 268
269 def TestUIUnit(self): 269 def TestUIUnit(self):
270 return self.SimpleTest("chrome", "ui_unittests") 270 return self.SimpleTest("chrome", "ui_unittests")
271 271
272 def TestGfx(self): 272 def TestGfx(self):
273 return self.SimpleTest("chrome", "gfx_unittests") 273 return self.SimpleTest("chrome", "gfx_unittests")
274 274
275 def TestViews(self):
276 return self.SimpleTest("views", "views_unittests")
277
275 # Valgrind timeouts are in seconds. 278 # Valgrind timeouts are in seconds.
276 UI_VALGRIND_ARGS = ["--timeout=7200", "--trace_children", "--indirect"] 279 UI_VALGRIND_ARGS = ["--timeout=7200", "--trace_children", "--indirect"]
277 # UI test timeouts are in milliseconds. 280 # UI test timeouts are in milliseconds.
278 UI_TEST_ARGS = ["--ui-test-action-timeout=120000", 281 UI_TEST_ARGS = ["--ui-test-action-timeout=120000",
279 "--ui-test-action-max-timeout=280000"] 282 "--ui-test-action-max-timeout=280000"]
280 def TestUI(self): 283 def TestUI(self):
281 return self.SimpleTest("chrome", "ui_tests", 284 return self.SimpleTest("chrome", "ui_tests",
282 valgrind_test_args=self.UI_VALGRIND_ARGS, 285 valgrind_test_args=self.UI_VALGRIND_ARGS,
283 cmd_args=self.UI_TEST_ARGS) 286 cmd_args=self.UI_TEST_ARGS)
284 287
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 "startup": TestStartup, "startup_tests": TestStartup, 441 "startup": TestStartup, "startup_tests": TestStartup,
439 "sync": TestSync, "sync_unit_tests": TestSync, 442 "sync": TestSync, "sync_unit_tests": TestSync,
440 "sync_integration_tests": TestSyncIntegration, 443 "sync_integration_tests": TestSyncIntegration,
441 "sync_integration": TestSyncIntegration, 444 "sync_integration": TestSyncIntegration,
442 "test_shell": TestTestShell, "test_shell_tests": TestTestShell, 445 "test_shell": TestTestShell, "test_shell_tests": TestTestShell,
443 "ui": TestUI, "ui_tests": TestUI, 446 "ui": TestUI, "ui_tests": TestUI,
444 "unit": TestUnit, "unit_tests": TestUnit, 447 "unit": TestUnit, "unit_tests": TestUnit,
445 "app": TestApp, "app_unittests": TestApp, 448 "app": TestApp, "app_unittests": TestApp,
446 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit, 449 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit,
447 "gfx": TestGfx, "gfx_unittests": TestGfx, 450 "gfx": TestGfx, "gfx_unittests": TestGfx,
451 "views": TestViews, "views_unittests": TestViews,
448 } 452 }
449 453
450 def _main(_): 454 def _main(_):
451 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> " 455 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> "
452 "[-t <test> ...]") 456 "[-t <test> ...]")
453 parser.disable_interspersed_args() 457 parser.disable_interspersed_args()
454 parser.add_option("-b", "--build_dir", 458 parser.add_option("-b", "--build_dir",
455 help="the location of the compiler output") 459 help="the location of the compiler output")
456 parser.add_option("-t", "--test", action="append", default=[], 460 parser.add_option("-t", "--test", action="append", default=[],
457 help="which test to run, supports test:gtest_filter format " 461 help="which test to run, supports test:gtest_filter format "
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 for t in options.test: 495 for t in options.test:
492 tests = ChromeTests(options, args, t) 496 tests = ChromeTests(options, args, t)
493 ret = tests.Run() 497 ret = tests.Run()
494 if ret: return ret 498 if ret: return ret
495 return 0 499 return 0
496 500
497 501
498 if __name__ == "__main__": 502 if __name__ == "__main__":
499 ret = _main(sys.argv) 503 ret = _main(sys.argv)
500 sys.exit(ret) 504 sys.exit(ret)
OLDNEW
« no previous file with comments | « no previous file | views/widget/native_widget_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698