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

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

Issue 6534004: Add sync_integration_tests support to valgrind's chrome_tests.sh. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback Created 9 years, 10 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/python 1 #!/usr/bin/python
2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2006-2008 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 ["--list=%s" % url_list_file])) 300 ["--list=%s" % url_list_file]))
301 301
302 def TestSafeBrowsing(self): 302 def TestSafeBrowsing(self):
303 return self.SimpleTest("chrome", "safe_browsing_tests", 303 return self.SimpleTest("chrome", "safe_browsing_tests",
304 valgrind_test_args=self.UI_VALGRIND_ARGS, 304 valgrind_test_args=self.UI_VALGRIND_ARGS,
305 cmd_args=(["--test-terminate-timeout=900000"])) 305 cmd_args=(["--test-terminate-timeout=900000"]))
306 306
307 def TestSync(self): 307 def TestSync(self):
308 return self.SimpleTest("chrome", "sync_unit_tests") 308 return self.SimpleTest("chrome", "sync_unit_tests")
309 309
310 def TestSyncIntegration(self):
311 return self.SimpleTest("chrome", "sync_integration_tests",
312 valgrind_test_args=self.UI_VALGRIND_ARGS,
313 cmd_args=(["--test-terminate-timeout=900000"]))
314
310 def TestLayoutChunk(self, chunk_num, chunk_size): 315 def TestLayoutChunk(self, chunk_num, chunk_size):
311 # Run tests [chunk_num*chunk_size .. (chunk_num+1)*chunk_size) from the 316 # Run tests [chunk_num*chunk_size .. (chunk_num+1)*chunk_size) from the
312 # list of tests. Wrap around to beginning of list at end. 317 # list of tests. Wrap around to beginning of list at end.
313 # If chunk_size is zero, run all tests in the list once. 318 # If chunk_size is zero, run all tests in the list once.
314 # If a text file is given as argument, it is used as the list of tests. 319 # If a text file is given as argument, it is used as the list of tests.
315 # 320 #
316 # Build the ginormous commandline in 'cmd'. 321 # Build the ginormous commandline in 'cmd'.
317 # It's going to be roughly 322 # It's going to be roughly
318 # python valgrind_test.py ... python run_webkit_tests.py ... 323 # python valgrind_test.py ... python run_webkit_tests.py ...
319 # but we'll use the --indirect flag to valgrind_test.py 324 # but we'll use the --indirect flag to valgrind_test.py
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 "layout": TestLayout, "layout_tests": TestLayout, 426 "layout": TestLayout, "layout_tests": TestLayout,
422 "media": TestMedia, "media_unittests": TestMedia, 427 "media": TestMedia, "media_unittests": TestMedia,
423 "net": TestNet, "net_unittests": TestNet, 428 "net": TestNet, "net_unittests": TestNet,
424 "notifier": TestNotifier, "notifier_unittests": TestNotifier, 429 "notifier": TestNotifier, "notifier_unittests": TestNotifier,
425 "printing": TestPrinting, "printing_unittests": TestPrinting, 430 "printing": TestPrinting, "printing_unittests": TestPrinting,
426 "reliability": TestReliability, "reliability_tests": TestReliability, 431 "reliability": TestReliability, "reliability_tests": TestReliability,
427 "remoting": TestRemoting, "remoting_unittests": TestRemoting, 432 "remoting": TestRemoting, "remoting_unittests": TestRemoting,
428 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, 433 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing,
429 "startup": TestStartup, "startup_tests": TestStartup, 434 "startup": TestStartup, "startup_tests": TestStartup,
430 "sync": TestSync, "sync_unit_tests": TestSync, 435 "sync": TestSync, "sync_unit_tests": TestSync,
436 "sync_integration_tests": TestSyncIntegration,
437 "sync_integration": TestSyncIntegration,
431 "test_shell": TestTestShell, "test_shell_tests": TestTestShell, 438 "test_shell": TestTestShell, "test_shell_tests": TestTestShell,
432 "ui": TestUI, "ui_tests": TestUI, 439 "ui": TestUI, "ui_tests": TestUI,
433 "unit": TestUnit, "unit_tests": TestUnit, 440 "unit": TestUnit, "unit_tests": TestUnit,
434 "app": TestApp, "app_unittests": TestApp, 441 "app": TestApp, "app_unittests": TestApp,
435 "gfx": TestGfx, "gfx_unittests": TestGfx, 442 "gfx": TestGfx, "gfx_unittests": TestGfx,
436 } 443 }
437 444
438 def _main(_): 445 def _main(_):
439 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> " 446 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> "
440 "[-t <test> ...]") 447 "[-t <test> ...]")
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 for t in options.test: 486 for t in options.test:
480 tests = ChromeTests(options, args, t) 487 tests = ChromeTests(options, args, t)
481 ret = tests.Run() 488 ret = tests.Run()
482 if ret: return ret 489 if ret: return ret
483 return 0 490 return 0
484 491
485 492
486 if __name__ == "__main__": 493 if __name__ == "__main__":
487 ret = _main(sys.argv) 494 ret = _main(sys.argv)
488 sys.exit(ret) 495 sys.exit(ret)
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