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

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

Issue 10382193: Valgrind / Heapcheck: Remove ui_tests from test harness. (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 | « tools/heapcheck/chrome_tests.py ('k') | 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 def TestSafeBrowsing(self): 338 def TestSafeBrowsing(self):
339 return self.SimpleTest("chrome", "safe_browsing_tests", 339 return self.SimpleTest("chrome", "safe_browsing_tests",
340 valgrind_test_args=self.UI_VALGRIND_ARGS, 340 valgrind_test_args=self.UI_VALGRIND_ARGS,
341 cmd_args=(["--ui-test-action-max-timeout=450000"])) 341 cmd_args=(["--ui-test-action-max-timeout=450000"]))
342 342
343 def TestSyncIntegration(self): 343 def TestSyncIntegration(self):
344 return self.SimpleTest("chrome", "sync_integration_tests", 344 return self.SimpleTest("chrome", "sync_integration_tests",
345 valgrind_test_args=self.UI_VALGRIND_ARGS, 345 valgrind_test_args=self.UI_VALGRIND_ARGS,
346 cmd_args=(["--ui-test-action-max-timeout=450000"])) 346 cmd_args=(["--ui-test-action-max-timeout=450000"]))
347 347
348 def TestUI(self):
349 return self.SimpleTest("chrome", "ui_tests",
350 valgrind_test_args=self.UI_VALGRIND_ARGS,
351 cmd_args=self.UI_TEST_ARGS)
352
353 def TestLayoutChunk(self, chunk_num, chunk_size): 348 def TestLayoutChunk(self, chunk_num, chunk_size):
354 # Run tests [chunk_num*chunk_size .. (chunk_num+1)*chunk_size) from the 349 # Run tests [chunk_num*chunk_size .. (chunk_num+1)*chunk_size) from the
355 # list of tests. Wrap around to beginning of list at end. 350 # list of tests. Wrap around to beginning of list at end.
356 # If chunk_size is zero, run all tests in the list once. 351 # If chunk_size is zero, run all tests in the list once.
357 # If a text file is given as argument, it is used as the list of tests. 352 # If a text file is given as argument, it is used as the list of tests.
358 # 353 #
359 # Build the ginormous commandline in 'cmd'. 354 # Build the ginormous commandline in 'cmd'.
360 # It's going to be roughly 355 # It's going to be roughly
361 # python valgrind_test.py ... python run_webkit_tests.py ... 356 # python valgrind_test.py ... python run_webkit_tests.py ...
362 # but we'll use the --indirect flag to valgrind_test.py 357 # but we'll use the --indirect flag to valgrind_test.py
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 "jingle": TestJingle, "jingle_unittests": TestJingle, 482 "jingle": TestJingle, "jingle_unittests": TestJingle,
488 "ppapi": TestPPAPI, "ppapi_unittests": TestPPAPI, 483 "ppapi": TestPPAPI, "ppapi_unittests": TestPPAPI,
489 "printing": TestPrinting, "printing_unittests": TestPrinting, 484 "printing": TestPrinting, "printing_unittests": TestPrinting,
490 "reliability": TestReliability, "reliability_tests": TestReliability, 485 "reliability": TestReliability, "reliability_tests": TestReliability,
491 "remoting": TestRemoting, "remoting_unittests": TestRemoting, 486 "remoting": TestRemoting, "remoting_unittests": TestRemoting,
492 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, 487 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing,
493 "sync": TestSync, "sync_unit_tests": TestSync, 488 "sync": TestSync, "sync_unit_tests": TestSync,
494 "sync_integration_tests": TestSyncIntegration, 489 "sync_integration_tests": TestSyncIntegration,
495 "sync_integration": TestSyncIntegration, 490 "sync_integration": TestSyncIntegration,
496 "test_shell": TestTestShell, "test_shell_tests": TestTestShell, 491 "test_shell": TestTestShell, "test_shell_tests": TestTestShell,
497 "ui": TestUI, "ui_tests": TestUI,
498 "unit": TestUnit, "unit_tests": TestUnit, 492 "unit": TestUnit, "unit_tests": TestUnit,
499 "sql": TestSql, "sql_unittests": TestSql, 493 "sql": TestSql, "sql_unittests": TestSql,
500 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit, 494 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit,
501 "gfx": TestGfx, "gfx_unittests": TestGfx, 495 "gfx": TestGfx, "gfx_unittests": TestGfx,
502 "gpu": TestGPU, "gpu_unittests": TestGPU, 496 "gpu": TestGPU, "gpu_unittests": TestGPU,
503 "views": TestViews, "views_unittests": TestViews, 497 "views": TestViews, "views_unittests": TestViews,
504 } 498 }
505 499
506 500
507 def _main(): 501 def _main():
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 543
550 for t in options.test: 544 for t in options.test:
551 tests = ChromeTests(options, args, t) 545 tests = ChromeTests(options, args, t)
552 ret = tests.Run() 546 ret = tests.Run()
553 if ret: return ret 547 if ret: return ret
554 return 0 548 return 0
555 549
556 550
557 if __name__ == "__main__": 551 if __name__ == "__main__":
558 sys.exit(_main()) 552 sys.exit(_main())
OLDNEW
« no previous file with comments | « tools/heapcheck/chrome_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698