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

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

Issue 7273087: Add support for sql_unittests to chrome_tests.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix valgrind 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
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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 valgrind_test_args=[ 256 valgrind_test_args=[
257 "--trace_children", 257 "--trace_children",
258 "--indirect"]) 258 "--indirect"])
259 259
260 def TestTestShell(self): 260 def TestTestShell(self):
261 return self.SimpleTest("webkit", "test_shell_tests") 261 return self.SimpleTest("webkit", "test_shell_tests")
262 262
263 def TestUnit(self): 263 def TestUnit(self):
264 return self.SimpleTest("chrome", "unit_tests") 264 return self.SimpleTest("chrome", "unit_tests")
265 265
266 def TestSql(self):
267 return self.SimpleTest("chrome", "sql_unittests")
268
266 def TestApp(self): 269 def TestApp(self):
267 return self.SimpleTest("chrome", "app_unittests") 270 return self.SimpleTest("chrome", "app_unittests")
268 271
269 def TestUIUnit(self): 272 def TestUIUnit(self):
270 return self.SimpleTest("chrome", "ui_unittests") 273 return self.SimpleTest("chrome", "ui_unittests")
271 274
272 def TestGfx(self): 275 def TestGfx(self):
273 return self.SimpleTest("chrome", "gfx_unittests") 276 return self.SimpleTest("chrome", "gfx_unittests")
274 277
275 def TestViews(self): 278 def TestViews(self):
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 "reliability": TestReliability, "reliability_tests": TestReliability, 441 "reliability": TestReliability, "reliability_tests": TestReliability,
439 "remoting": TestRemoting, "remoting_unittests": TestRemoting, 442 "remoting": TestRemoting, "remoting_unittests": TestRemoting,
440 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, 443 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing,
441 "startup": TestStartup, "startup_tests": TestStartup, 444 "startup": TestStartup, "startup_tests": TestStartup,
442 "sync": TestSync, "sync_unit_tests": TestSync, 445 "sync": TestSync, "sync_unit_tests": TestSync,
443 "sync_integration_tests": TestSyncIntegration, 446 "sync_integration_tests": TestSyncIntegration,
444 "sync_integration": TestSyncIntegration, 447 "sync_integration": TestSyncIntegration,
445 "test_shell": TestTestShell, "test_shell_tests": TestTestShell, 448 "test_shell": TestTestShell, "test_shell_tests": TestTestShell,
446 "ui": TestUI, "ui_tests": TestUI, 449 "ui": TestUI, "ui_tests": TestUI,
447 "unit": TestUnit, "unit_tests": TestUnit, 450 "unit": TestUnit, "unit_tests": TestUnit,
451 "sql": TestSql, "sql_unittests": TestSql,
452 # TODO(rsesek): Temporary, remove after buildbot master restart.
448 "app": TestApp, "app_unittests": TestApp, 453 "app": TestApp, "app_unittests": TestApp,
449 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit, 454 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit,
450 "gfx": TestGfx, "gfx_unittests": TestGfx, 455 "gfx": TestGfx, "gfx_unittests": TestGfx,
451 "views": TestViews, "views_unittests": TestViews, 456 "views": TestViews, "views_unittests": TestViews,
452 } 457 }
453 458
454 def _main(_): 459 def _main(_):
455 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> " 460 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> "
456 "[-t <test> ...]") 461 "[-t <test> ...]")
457 parser.disable_interspersed_args() 462 parser.disable_interspersed_args()
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 for t in options.test: 500 for t in options.test:
496 tests = ChromeTests(options, args, t) 501 tests = ChromeTests(options, args, t)
497 ret = tests.Run() 502 ret = tests.Run()
498 if ret: return ret 503 if ret: return ret
499 return 0 504 return 0
500 505
501 506
502 if __name__ == "__main__": 507 if __name__ == "__main__":
503 ret = _main(sys.argv) 508 ret = _main(sys.argv)
504 sys.exit(ret) 509 sys.exit(ret)
OLDNEW
« no previous file with comments | « tools/heapcheck/chrome_tests.py ('k') | tools/valgrind/gtest_exclude/app_unittests.gtest-tsan.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698