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

Side by Side Diff: tools/heapcheck/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
« no previous file with comments | « no previous file | tools/valgrind/chrome_tests.py » ('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 2
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 ''' Runs various chrome tests through heapcheck_test.py. 7 ''' Runs various chrome tests through heapcheck_test.py.
8 8
9 Most of this code is copied from ../valgrind/chrome_tests.py. 9 Most of this code is copied from ../valgrind/chrome_tests.py.
10 TODO(glider): put common functions to a standalone module. 10 TODO(glider): put common functions to a standalone module.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 "layout": self.TestLayout, "layout_tests": self.TestLayout, 89 "layout": self.TestLayout, "layout_tests": self.TestLayout,
90 "media": self.TestMedia, "media_unittests": self.TestMedia, 90 "media": self.TestMedia, "media_unittests": self.TestMedia,
91 "net": self.TestNet, "net_unittests": self.TestNet, 91 "net": self.TestNet, "net_unittests": self.TestNet,
92 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting, 92 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting,
93 "remoting": self.TestRemoting, "remoting_unittests": self.TestRemoting, 93 "remoting": self.TestRemoting, "remoting_unittests": self.TestRemoting,
94 "startup": self.TestStartup, "startup_tests": self.TestStartup, 94 "startup": self.TestStartup, "startup_tests": self.TestStartup,
95 "sync": self.TestSync, "sync_unit_tests": self.TestSync, 95 "sync": self.TestSync, "sync_unit_tests": self.TestSync,
96 "test_shell": self.TestTestShell, "test_shell_tests": self.TestTestShell, 96 "test_shell": self.TestTestShell, "test_shell_tests": self.TestTestShell,
97 "ui": self.TestUI, "ui_tests": self.TestUI, 97 "ui": self.TestUI, "ui_tests": self.TestUI,
98 "unit": self.TestUnit, "unit_tests": self.TestUnit, 98 "unit": self.TestUnit, "unit_tests": self.TestUnit,
99 "sql": self.TestSql, "sql_unittests": self.TestSql,
100 # TODO(rsesek): Temporary, remove after buildbot master restart.
99 "app": self.TestApp, "app_unittests": self.TestApp, 101 "app": self.TestApp, "app_unittests": self.TestApp,
100 "ui_unit": self.TestUIUnit, "ui_unittests": self.TestUIUnit, 102 "ui_unit": self.TestUIUnit, "ui_unittests": self.TestUIUnit,
101 "gfx": self.TestGfx, "gfx_unittests": self.TestGfx, 103 "gfx": self.TestGfx, "gfx_unittests": self.TestGfx,
102 } 104 }
103 105
104 if test not in self._test_list: 106 if test not in self._test_list:
105 raise TestNotFound("Unknown test: %s" % test) 107 raise TestNotFound("Unknown test: %s" % test)
106 108
107 self._options = options 109 self._options = options
108 self._args = args 110 self._args = args
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 os.putenv("STARTUP_TESTS_NUMCYCLES", "1") 290 os.putenv("STARTUP_TESTS_NUMCYCLES", "1")
289 logging.info("export STARTUP_TESTS_NUMCYCLES=1"); 291 logging.info("export STARTUP_TESTS_NUMCYCLES=1");
290 return self.SimpleTest("chrome", "startup_tests") 292 return self.SimpleTest("chrome", "startup_tests")
291 293
292 def TestTestShell(self): 294 def TestTestShell(self):
293 return self.SimpleTest("webkit", "test_shell_tests") 295 return self.SimpleTest("webkit", "test_shell_tests")
294 296
295 def TestUnit(self): 297 def TestUnit(self):
296 return self.SimpleTest("chrome", "unit_tests") 298 return self.SimpleTest("chrome", "unit_tests")
297 299
300 def TestSql(self):
301 return self.SimpleTest("chrome", "sql_unittests")
302
298 def TestApp(self): 303 def TestApp(self):
299 return self.SimpleTest("chrome", "app_unittests") 304 return self.SimpleTest("chrome", "app_unittests")
300 305
301 def TestUIUnit(self): 306 def TestUIUnit(self):
302 return self.SimpleTest("chrome", "ui_unittests") 307 return self.SimpleTest("chrome", "ui_unittests")
303 308
304 def TestGfx(self): 309 def TestGfx(self):
305 return self.SimpleTest("chrome", "gfx_unittests") 310 return self.SimpleTest("chrome", "gfx_unittests")
306 311
307 def TestUI(self): 312 def TestUI(self):
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 return 0 461 return 0
457 462
458 463
459 if __name__ == "__main__": 464 if __name__ == "__main__":
460 if sys.platform.startswith('linux'): 465 if sys.platform.startswith('linux'):
461 ret = _main(sys.argv) 466 ret = _main(sys.argv)
462 else: 467 else:
463 logging.error("Heap checking works only on Linux at the moment.") 468 logging.error("Heap checking works only on Linux at the moment.")
464 ret = 1 469 ret = 1
465 sys.exit(ret) 470 sys.exit(ret)
OLDNEW
« no previous file with comments | « no previous file | tools/valgrind/chrome_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698